selftests/ftrace: Add required dependency for kprobe tests
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 12 Jun 2024 22:12:10 +0000 (07:12 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 14 Aug 2024 11:41:26 +0000 (05:41 -0600)
commit41f37c852ac3fbfd072a00281b60dc7ba056be8c
tree8535f06cc585535f6c82a4297984e4dbbdc2ef09
parent8afc0816f5f6213c2f40399317e2ecd43371729c
selftests/ftrace: Add required dependency for kprobe tests

kprobe_args_{char,string}.tc are using available_filter_functions file
which is provided by function tracer. Thus if function tracer is disabled,
these tests are failed on recent kernels because tracefs_create_dir is
not raised events by adding a dynamic event.
Add available_filter_functions to requires line.

Fixes: 7c1130ea5cae ("test: ftrace: Fix kprobe test for eventfs")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc