selftests/ftrace: Fix BTFARG testcase to check fprobe is enabled correctly
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sat, 4 May 2024 00:33:10 +0000 (09:33 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 8 May 2024 22:49:14 +0000 (16:49 -0600)
commit2fd3ef1b9265eda7f53b9506f1ebfb67eb6435a2
tree3edff66453515f2c0cc2e5602be198af7e207292
parentb0df30628459a0fb349e3de09cf0fd6548241044
selftests/ftrace: Fix BTFARG testcase to check fprobe is enabled correctly

Since the dynevent/add_remove_btfarg.tc test case forgets to ensure that
fprobe is enabled for some structure field access tests which uses the
fprobe, it fails if CONFIG_FPROBE=n or CONFIG_FPROBE_EVENTS=n.
Fixes it to ensure the fprobe events are supported.

Fixes: d892d3d3d885 ("selftests/ftrace: Add BTF fields access testcases")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc