Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Masami Hiramatsu (Google) and committed by
Shuah Khan
41f37c85 8afc0816

+2 -2
+1 -1
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # description: Kprobe event char type argument 4 - # requires: kprobe_events 4 + # requires: kprobe_events available_filter_functions 5 5 6 6 case `uname -m` in 7 7 x86_64)
+1 -1
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # description: Kprobe event string type argument 4 - # requires: kprobe_events 4 + # requires: kprobe_events available_filter_functions 5 5 6 6 case `uname -m` in 7 7 x86_64)