Skip to content

Commit 02ab723

Browse files
committed
selftests/ftrace: Fix to check fprobe event eneblement
Fix to check the availability of fprobe and kprobes for add_remove_btfarg.tc. Only if both kprobe and fprobe are not supported, it should return "unsupported". Link: https://lore.kernel.org/all/169024904889.395371.17998733386857387118.stgit@devnote2/ Fixes: 4231f30 ("selftests/ftrace: Add BTF arguments test cases") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 1f9f4f4 commit 02ab723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if grep -qF "f[:[<group>/][<event>]] <func-name>[%return] [<args>]" README ; the
1313
FPROBES=yes
1414
fi
1515

16-
if [ -z "$KPROBES" -a "$FPROBES" ] ; then
16+
if [ -z "$KPROBES" -a -z "$FPROBES" ] ; then
1717
exit_unsupported
1818
fi
1919

0 commit comments

Comments
 (0)