summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ftrace/test.d/dynevent/clear_select_events.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/dynevent/clear_select_events.tc
parentfa33e6236f5fa425a3ccf8925010d51fae9f0929 (diff)
downloadlinux-sh-3591e90fe1108909f822948bd7628412282f7e9d.tar.gz
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/dynevent/clear_select_events.tc')
-rw-r--r--tools/testing/selftests/ftrace/test.d/dynevent/clear_select_events.tc6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/clear_select_events.tc b/tools/testing/selftests/ftrace/test.d/dynevent/clear_select_events.tc
index e0842109cb57..e2484445ddec 100644
--- a/tools/testing/selftests/ftrace/test.d/dynevent/clear_select_events.tc
+++ b/tools/testing/selftests/ftrace/test.d/dynevent/clear_select_events.tc
@@ -1,17 +1,13 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Generic dynamic event - selective clear (compatibility)
-
-[ -f dynamic_events ] || exit_unsupported
+# requires: dynamic_events kprobe_events synthetic_events
grep -q "place: \[<module>:\]<symbol>" README || exit_unsupported
grep -q "place (kretprobe): \[<module>:\]<symbol>" README || exit_unsupported
grep -q "s:\[synthetic/\]" README || exit_unsupported
-[ -f synthetic_events ] || exit_unsupported
-[ -f kprobe_events ] || exit_unsupported
-
echo 0 > events/enable
echo > dynamic_events