Skip to content

Commit 84c0656

Browse files
thomasmeyShuah Khan
authored andcommitted
selftests/ftrace: multiple_kprobes: Also check for support
The multiple_kprobes test case fails to check for KPROBE_EVENT support. Add the check to prevent a false test result. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
1 parent 56a268c commit 84c0656

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
22
# description: Register/unregister many kprobe events
33

4+
[ -f kprobe_events ] || exit_unsupported # this is configurable
5+
46
# ftrace fentry skip size depends on the machine architecture.
57
# Currently HAVE_KPROBES_ON_FTRACE defined on x86 and powerpc64le
68
case `uname -m` in

0 commit comments

Comments
 (0)