]> git.baikalelectronics.ru Git - kernel.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)
commitef05bf4b0a201166596ca10833dc01c68f9d2a9c
tree69a72603276e35b5d130e0c35f597b2b7034eaf3
parent9be2a68c30d500ca7e1909d63e8410c1c2e61292
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