selftests/ftrace: Add a testcase for kprobe event naming
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 7 Jul 2017 18:57:33 +0000 (00:27 +0530)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 9 Jul 2017 11:46:28 +0000 (07:46 -0400)
commit8cb0bc9e3f863f3e77522d02443a75c0e45a6ed0
treef26106bcab2ee3acca41f6b6efadee9561a5baf4
parentff431b1390cbf8764f8550b8e427eb28d4a6328e
selftests/ftrace: Add a testcase for kprobe event naming

Add a testcase for kprobe event naming. This testcase checks whether the
kprobe events can automatically ganerate its event name on normal
function and dot-suffixed function.  Also it checks whether the kprobe
events can correctly define new event with given event name and group
name.

Link: http://lkml.kernel.org/r/61ae96fd1fcd14ee652c8b6525c218b8661bb0d2.1499453040.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
[Updated tests to use vfs_read and symbols with '.isra.',
added check for kprobe_events and a command to clear it on exit,
various additional checks and tests]
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc [new file with mode: 0644]