]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/ftrace: Add some missing glob checks
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 6 Feb 2018 22:19:03 +0000 (17:19 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Feb 2018 15:13:28 +0000 (10:13 -0500)
commit6fa6244cced94720480ad5af5f7b88a0e2a8fcaf
treeb0ae76021df0c889ba69ecb1bef395a99427619d
parent1205ffec751b7ec08482372ec6c21698db1007f5
selftests/ftrace: Add some missing glob checks

Al Viro discovered a bug in the glob ftrace filtering code where "*a*b" is
treated the same as "a*b", and functions that would be selected by "*a*b"
but not "a*b" are not selected with "*a*b".

Add tests for patterns "*a*b" and "a*b*" to the glob selftest.

Link: http://lkml.kernel.org/r/20180127170748.GF13338@ZenIV.linux.org.uk
Cc: Shuah Khan <shuah@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc