Skip to content

Commit 41f37c8

Browse files
mhiramatshuahkh
authored andcommitted
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: 7c1130e ("test: ftrace: Fix kprobe test for eventfs") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 8afc081 commit 41f37c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
33
# description: Kprobe event char type argument
4-
# requires: kprobe_events
4+
# requires: kprobe_events available_filter_functions
55

66
case `uname -m` in
77
x86_64)

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
33
# description: Kprobe event string type argument
4-
# requires: kprobe_events
4+
# requires: kprobe_events available_filter_functions
55

66
case `uname -m` in
77
x86_64)

0 commit comments

Comments
 (0)