aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-06-03 11:40:49 +0900
committerShuah Khan <skhan@linuxfoundation.org>2020-06-16 10:41:32 -0600
commit74e6072894d6ccd9c950d1c9bce3870596731810 (patch)
treeaf03d803c137cd4aaaf3b4593a5ba497c79a1bc5 /tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc
parentselftests/ftrace: Convert required interface checks into requires list (diff)
downloadwireguard-linux-74e6072894d6ccd9c950d1c9bce3870596731810.tar.xz
wireguard-linux-74e6072894d6ccd9c950d1c9bce3870596731810.zip
selftests/ftrace: Convert check_filter_file() with requires list
Since check_filter_file() is basically checking the filter tracefs file, we can convert it into requires list. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc
index b7f8536438bd..9a983df5ae17 100644
--- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc
+++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc
@@ -1,12 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Kprobe dynamic event with function tracer
-# requires: kprobe_events
+# requires: kprobe_events stack_trace_filter
grep "function" available_tracers || exit_unsupported # this is configurable
-check_filter_file set_ftrace_filter
-
# prepare
echo nop > current_tracer
echo _do_fork > set_ftrace_filter