]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
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)
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

index e21c9c27ece4761640d5d8e4cb7c7f5cb9fb4266..77f4c07cdcb89934aebff5b9c41e02911d5410fc 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 # description: Kprobe event char type argument
-# requires: kprobe_events
+# requires: kprobe_events available_filter_functions
 
 case `uname -m` in
 x86_64)
index 93217d4595563f4111e12c1cf1faf584cb314f8e..39001073f7ed5d8f4f7cdf7cf01da09088b29acf 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 # description: Kprobe event string type argument
-# requires: kprobe_events
+# requires: kprobe_events available_filter_functions
 
 case `uname -m` in
 x86_64)