selftests: ftrace: Add a testcase for function filter glob match
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 16 Nov 2016 08:14:36 +0000 (17:14 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Nov 2016 20:54:39 +0000 (15:54 -0500)
commit60c1afbf10528f646a6fcae1a2c404d216e594d5
tree8e50196926d28456373fc3ca6f187061bfa33cc2
parent62197529000aa56d8a1ca397becd58a430cb7409
selftests: ftrace: Add a testcase for function filter glob match

Add function filter glob matching test case.
This checks whether the kernel supports glob matching
(front match, end match, middle match, side match,
character class and '?').

Here is the test result.
  -----
  ./ftracetest test.d/ftrace/func-filter-glob.tc
  === Ftrace unit tests ===
  [1] ftrace - function glob filters [PASS]

  # of passed:  1
  # 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/147928407589.22982.16364174511117104303.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc [new file with mode: 0644]