kselftests/ftrace : Add event trigger testcases
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 3 Mar 2016 18:55:00 +0000 (12:55 -0600)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 19 Apr 2016 22:56:01 +0000 (18:56 -0400)
commitcfa0963dc474fd098d6a7a722dcecfc143a4b377
tree0fb68b3cc2c619f77a36e852d96e5cd8bd451f82
parent5463bfda327b1f7310556ef3136533e27c774f13
kselftests/ftrace : Add event trigger testcases

This adds simple event trigger testcases for ftracetest,
which covers following triggers.
 - traceon-traceoff trigger
 - enable/disable_event trigger
 - snapshot trigger
 - stacktrace trigger
 - trigger filters

Here is the test result.

  ----
  # ./ftracetest test.d/trigger/
  === Ftrace unit tests ===
  [1] event trigger - test event enable/disable trigger   [PASS]
  [2] event trigger - test trigger filter [PASS]
  [3] event trigger - test snapshot-trigger       [PASS]
  [4] event trigger - test stacktrace-trigger     [PASS]
  [5] event trigger - test traceon/off trigger    [PASS]

  # of passed:  5
  # of failed:  0
  # of unresolved:  0
  # of untested:  0
  # of unsupported:  0
  # of xfailed:  0
  # of undefined(test bug):  0
  ----

Link: http://lkml.kernel.org/r/12b9c2b289a0dc1e4386e7b77674611a83abca85.1457029949.git.tom.zanussi@linux.intel.com
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/functions
tools/testing/selftests/ftrace/test.d/trigger/trigger-eventonoff.tc [new file with mode: 0644]
tools/testing/selftests/ftrace/test.d/trigger/trigger-filter.tc [new file with mode: 0644]
tools/testing/selftests/ftrace/test.d/trigger/trigger-snapshot.tc [new file with mode: 0644]
tools/testing/selftests/ftrace/test.d/trigger/trigger-stacktrace.tc [new file with mode: 0644]
tools/testing/selftests/ftrace/test.d/trigger/trigger-traceonoff.tc [new file with mode: 0644]