]> git.baikalelectronics.ru Git - kernel.git/commit
selftest: ftrace: Fix to pick text symbols for kprobes
authorMasami Hiramatsu <mhiramat@kernel.org>
Sun, 14 Jan 2018 13:50:07 +0000 (22:50 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 16 Jan 2018 16:29:25 +0000 (09:29 -0700)
commit9be2a68c30d500ca7e1909d63e8410c1c2e61292
tree200f1bf7e734347f4c37f11839a5d6a90587255b
parent78ebb622fee9fea01e85fbf539a22e4f3b473ff9
selftest: ftrace: Fix to pick text symbols for kprobes

Fix to pick text symbols for multiple kprobe testcase.
kallsyms shows text symbols with " t " or " T " but
current testcase picks all symbols including "t",
so it picks data symbols if it includes 't' (e.g. "str").

This fixes it to find symbol lines with " t " or " T "
(including spaces).

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reported-by: Russell King <linux@armlinux.org.uk>
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