selftests: ftrace: Check whether snapshot trigger is supported correctly
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 16 Nov 2016 08:13:32 +0000 (17:13 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Nov 2016 19:24:14 +0000 (14:24 -0500)
commit131c60c39cf05287b07025b5eefac7bc10c086b0
tree107def1cf1ae57dac86ebd496eca84a480be6f01
parent7786bcca77756b657c28ca7e38600333f5197f9b
selftests: ftrace: Check whether snapshot trigger is supported correctly

If "snapshot" special file doesn't exist, that kernel does
not support snapshot and snapshot trigger too. In that case
snapshot trigger test results to unsupported instead of fail.

Link: http://lkml.kernel.org/r/147928401215.22982.10411665829041109794.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/trigger/trigger-snapshot.tc