diff options
author | Xiao Yang <yangx.jy@cn.fujitsu.com> | 2020-04-22 17:58:07 +0800 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-04-23 17:11:37 -0600 |
commit | 16bcd0f509e469630d82a33a6d7e5d95bcc738fe (patch) | |
tree | 23b22cc21292d9b6f2290b2501be941551d425aa /tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc | |
parent | selftests/ipc: Fix test failure seen after initial test run (diff) | |
download | wireguard-linux-16bcd0f509e469630d82a33a6d7e5d95bcc738fe.tar.xz wireguard-linux-16bcd0f509e469630d82a33a6d7e5d95bcc738fe.zip |
selftests/ftrace: Check required filter files before running test
Without CONFIG_DYNAMIC_FTRACE, some tests get failure because required
filter files(set_ftrace_filter/available_filter_functions/stack_trace_filter)
are missing. So implement check_filter_file() and make all related tests
check required filter files by it.
BTW: set_ftrace_filter and available_filter_functions are introduced together
so just check either of them.
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Acked-by: Masami Hiramatsu <mhiramat@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.tc | 2 |
1 files changed, 2 insertions, 0 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 7650a82db3f5..df5072815b87 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_ftrace.tc @@ -5,6 +5,8 @@ [ -f kprobe_events ] || exit_unsupported # this is configurable 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 |