selftests/ftrace: Fix to check fprobe event eneblement
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 25 Jul 2023 01:37:29 +0000 (10:37 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 26 Jul 2023 03:54:17 +0000 (12:54 +0900)
commit02ab7234fc69695736d60b34044fe591689ffadd
tree8b43132c4257575ee8fe746f6e8607b783d19428
parent1f9f4f4777e7958e5c1fbdfd9ddf4207dc00a40f
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: 4231f30fcc34 ("selftests/ftrace: Add BTF arguments test cases")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc