aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-06-03 11:40:38 +0900
committerShuah Khan <skhan@linuxfoundation.org>2020-06-16 10:39:20 -0600
commit3591e90fe1108909f822948bd7628412282f7e9d (patch)
tree61db9ee8874c8585a02dc4a387dd6e3bea76d51d /tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc
parentselftests/ftrace: Add "requires:" list support (diff)
downloadlinux-dev-3591e90fe1108909f822948bd7628412282f7e9d.tar.xz
linux-dev-3591e90fe1108909f822948bd7628412282f7e9d.zip
selftests/ftrace: Convert required interface checks into requires list
Convert the required tracefs interface checking code with requires: list. Fixed merge conflicts in trigger-hist.tc and trigger-trace-marker-hist.tc Shuah Khan <skhan@linuxfoundation.org> 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 'tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc')
-rw-r--r--tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc
index 71db68a7975f..799cd1b9c42c 100644
--- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc
+++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc
@@ -1,6 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: ftrace - function pid notrace filters
+# requires: set_ftrace_notrace_pid
# flags: instance
# Make sure that function pid matching filter with notrace works.
@@ -10,11 +11,6 @@ if ! grep -q function available_tracers; then
exit_unsupported
fi
-if [ ! -f set_ftrace_notrace_pid ]; then
- echo "set_ftrace_notrace_pid not found? Is function tracer not set?"
- exit_unsupported
-fi
-
check_filter_file set_ftrace_filter
do_function_fork=1