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)
commit5e46664703b364434a2cbda3e6988fc24ae0ced5
tree200f1bf7e734347f4c37f11839a5d6a90587255b
parenta4f0e38e1d0d87849e22cb2f9c3f0bbe87729f5d
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