]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: ftrace: Allow some tests to be run in a tracing instance
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Apr 2017 16:53:18 +0000 (12:53 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 26 Apr 2017 12:54:01 +0000 (08:54 -0400)
commitb3d5539cd2e3d766a040de8f37d99fd889da25c4
tree961d9ba5a25072abe1cbeda0fb6727a7526cc543
parent12ff8b67ecded88cbc8da92fae2af09a94bda615
selftests: ftrace: Allow some tests to be run in a tracing instance

An tracing instance has several of the same capabilities as the top level
instance, but may be implemented slightly different. Instead of just writing
tests that duplicat the same test cases of the top level instance, allow a
test to be written for both the top level as well as for an instance.

If a test case can be run in both the top level as well as in an tracing
instance directory, then it should add a tag "# flags: instance" in the
header of the test file. Then after all tests have run, any test that has an
instance flag set, will run again within a tracing instance.

Link: http://lkml.kernel.org/r/20170421233850.1d0e9e05@gandalf.local.home
Cc: Shuah Khan <shuah@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/ftracetest