summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-06-03 04:40:38 +0200
committerShuah Khan <skhan@linuxfoundation.org>2020-06-16 18:39:20 +0200
commit3591e90fe1108909f822948bd7628412282f7e9d (patch)
tree61db9ee8874c8585a02dc4a387dd6e3bea76d51d /tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc
parentselftests/ftrace: Add "requires:" list support (diff)
downloadlinux-3591e90fe1108909f822948bd7628412282f7e9d.tar.xz
linux-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/00basic/snapshot.tc')
-rw-r--r--tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc b/tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc
index 3b1f45e13a2e..13b4dabcf46e 100644
--- a/tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc
+++ b/tools/testing/selftests/ftrace/test.d/00basic/snapshot.tc
@@ -1,9 +1,8 @@
#!/bin/sh
# description: Snapshot and tracing setting
+# requires: snapshot
# flags: instance
-[ ! -f snapshot ] && exit_unsupported
-
echo "Set tracing off"
echo 0 > tracing_on