]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selftests/ftrace: Add a testcase for many kprobe events
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 26 May 2017 04:44:54 +0000 (13:44 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 27 May 2017 02:37:00 +0000 (22:37 -0400)
commitbdd7e3d68492bfb7ade574f8c64b87bea499ca2e
tree98bdf30c70ea25ff65e215c08c3e2d6a9e05f6d6
parentc93f5cf571e7795f97d49ef51b766cf25e328545
selftests/ftrace: Add a testcase for many kprobe events

Add a testcase to test kprobes via ftrace interface
with many concurrent kprobe events.

This tries to add many kprobe events (up to 256) on
kernel functions. To avoid making ftrace-based
kprobes (kprobes on fentry), it skips first N bytes
(on x86 N=5, on ppc or arm N=4) of function entry.
After that, it enables all those events, disable it,
and remove it.

Since the unoptimization buffer reclaiming will
be delayed, after removing events, it will wait
enough time.

Link: http://lkml.kernel.org/r/149577388470.11702.11832460851769204511.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc [new file with mode: 0644]