]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 17:44:25 +0000 (13:44 -0400)
commit380f39c94f41f93ce0c4be57164b2f19931d601e
treeb271bc46662fc01b16ab7022c60b1bf3413f4cf4
parent0ed1c9efbdea112c13848f57df67138d9314b3e5
selftest: ftrace: Fix to pick text symbols for kprobes

BugLink: http://bugs.launchpad.net/bugs/1774063
[ Upstream commit 5e46664703b364434a2cbda3e6988fc24ae0ced5 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc