]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
selftests: ftrace: Have some basic tests run in a tracing instance too
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Apr 2017 17:44:32 +0000 (13:44 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 26 Apr 2017 12:54:40 +0000 (08:54 -0400)
Some of the basic ftrace selftests should also be run in an instance. These
test a quick case of running all tracers in the available_tracers file
within the instance. The other is testing the clock used for the instance.

Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/00basic/basic2.tc
tools/testing/selftests/ftrace/test.d/00basic/basic3.tc

index bf9a7b037924f84dbbae5ad4bc7fd1e78f1a52b6..ebfce83f35b44b4fff4bfa6f58792115d912db51 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/sh
 # description: Basic test for tracers
+# flags: instance
 test -f available_tracers
 for t in `cat available_tracers`; do
   echo $t > current_tracer
index bde6625d9785fbc25073a69c9e8a003ff7a8a905..9e33f841812f304c5deed76bc605284dc4135895 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/sh
 # description: Basic trace clock test
+# flags: instance
 test -f trace_clock
 for c in `cat trace_clock | tr  -d \[\]`; do
   echo $c > trace_clock