]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/ftrace: Add more tests for removing of function probes
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 6 Feb 2018 22:28:36 +0000 (17:28 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Feb 2018 15:31:50 +0000 (10:31 -0500)
commit3c94df19f8a61538e165a7fa15be3cbe990e7b76
tree54b5a4346e706d7f87f37b9ac7bed4ee63637bbd
parent6fa6244cced94720480ad5af5f7b88a0e2a8fcaf
selftests/ftrace: Add more tests for removing of function probes

Al Viro discovered a bug in the removing of function probes where if it had
a '*' at the beginning, it would fail to find any matches. That is, because
it reset the glob search string to the the initial string with a "MATCH_END"
type, instead of skipping the wildcard "*" it included it, where it would
not match any functions because "*" was being treated as a normal character
and not a wildcard one.

Link: http://lkml.kernel.org/r/20180127031706.GE13338@ZenIV.linux.org.uk
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc