selftests/ftrace: Have reset_ftrace_filter handle modules
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 6 Feb 2018 22:10:12 +0000 (17:10 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Feb 2018 15:13:09 +0000 (10:13 -0500)
commitdf9d36d9e8adefe0975c7b5888967651b3db3af3
tree32731d7ed05478f7ba9d8a73a87bdc30380c6a2c
parent07234021410bbc27b7c86c18de98616c29fbe667
selftests/ftrace: Have reset_ftrace_filter handle modules

If a function probe in set_ftrace_filter belongs to a module, it will
contain the module name. Like:

 wmi_query_block [wmi]:traceoff:unlimited

But writing:

 '!wmi_query_block [wmi]:traceoff' > set_ftrace_filter

will cause an error. We still need to write:

 '!wmi_query_block:traceoff' > set_ftrace_filter

Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/functions