]> asedeno.scripts.mit.edu Git - linux.git/commit
selftest: ftrace: Fix to add 256 kprobe events correctly
authorMasami Hiramatsu <mhiramat@kernel.org>
Sun, 14 Jan 2018 13:50:36 +0000 (22:50 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 16 Jan 2018 16:29:33 +0000 (09:29 -0700)
commit9739cee6918b222af6f75869ed33127a8b1c3d77
tree69a72603276e35b5d130e0c35f597b2b7034eaf3
parent5e46664703b364434a2cbda3e6988fc24ae0ced5
selftest: ftrace: Fix to add 256 kprobe events correctly

Current multiple-kprobe testcase only tries to add
kprobe events on first 256 text symbols. However
kprobes fails to probe on some text symbols (like
blacklisted symbols). Thus in the worst case,
the test can not add any kprobe events.

To avoid that, continue to try adding kprobe events
until 256 events. Also it confirms the number of
registered kprobe events.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc