summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-06-20 22:10:09 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-20 22:10:09 +0300
commit27c2760561c0c68595b60a084c317b34e85e7c73 (patch)
tree66a8ecf8cd5bd1d29c15070691be2c176cc71689 /tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
parent5481fc6eb8a7f4b76d8ad1be371d2e11b22bfb55 (diff)
parent1b8eec510ba641418573eacc98a7e9c07726af30 (diff)
downloadlinux-27c2760561c0c68595b60a084c317b34e85e7c73.tar.xz
Merge tag 'linux-kselftest-5.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest cleanups from Shuah Khan: - ftrace "requires:" list for simplifying and unifying requirement checks for each test case, adding "requires:" line instead of checking required ftrace interfaces in each test case. - a minor spelling correction patch * tag 'linux-kselftest-5.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/ftrace: Support ":README" suffix for requires selftests/ftrace: Support ":tracer" suffix for requires selftests/ftrace: Convert check_filter_file() with requires list selftests/ftrace: Convert required interface checks into requires list selftests/ftrace: Add "requires:" list support selftests/ftrace: Return unsupported for the unconfigured features selftests/ftrace: Allow ":" in description tools: testing: ftrace: trigger: fix spelling mistake
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc')
-rw-r--r--tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
index 84d7bda08d2a..93c10ea42a68 100644
--- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
@@ -1,6 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: event tracing - enable/disable with top level files
+# requires: available_events set_event events/enable
do_reset() {
echo > set_event
@@ -12,11 +13,6 @@ fail() { #msg
exit_fail
}
-if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
- echo "event tracing is not supported"
- exit_unsupported
-fi
-
echo '*:*' > set_event
yield