aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-06-03 11:41:09 +0900
committerShuah Khan <skhan@linuxfoundation.org>2020-06-16 10:42:47 -0600
commit1b8eec510ba641418573eacc98a7e9c07726af30 (patch)
treecddf870013d6620c166ae8bd913505bef81135bc /tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc
parentselftests/ftrace: Support ":tracer" suffix for requires (diff)
downloadwireguard-linux-1b8eec510ba641418573eacc98a7e9c07726af30.tar.xz
wireguard-linux-1b8eec510ba641418573eacc98a7e9c07726af30.zip
selftests/ftrace: Support ":README" suffix for requires
Add ":README" suffix support for the requires list, so that the testcase can list up the required string for README file to the requires list. Note that the required string is treated as a fixed string, instead of regular expression. Also, the testcase can specify a string containing spaces with quotes. E.g. # requires: "place: [<module>:]<symbol>":README Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc')
-rw-r--r--tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc
index d599d6f544d4..0610e0b5587c 100644
--- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc
+++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc
@@ -1,9 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Kprobes event arguments with types
-# requires: kprobe_events
-
-grep "x8/16/32/64" README > /dev/null || exit_unsupported # version issue
+# requires: kprobe_events "x8/16/32/64":README
gen_event() { # Bitsize
echo "p:testprobe _do_fork \$stack0:s$1 \$stack0:u$1 \$stack0:x$1 \$stack0:b4@4/$1"