selftests: ftrace: Add a way to reset triggers in the set_ftrace_filter file
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 17 Apr 2017 21:30:08 +0000 (17:30 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 18 Apr 2017 17:48:25 +0000 (13:48 -0400)
commit8e5e19c1b98394c2cdc186a4b0be422fe6e7217a
tree4b90d89dd7cba4e8d1d1ff136a73a67c2ec76da5
parent560642d9ab5c37451ee43989dd9a35037ab5ab8d
selftests: ftrace: Add a way to reset triggers in the set_ftrace_filter file

Just writing into the set_ftrace_filter file does not reset triggers, even
though it can reset the function list. Triggers require writing the trigger
name with a "!" prepended. It's worse that it requires the number if the
trigger has a count associated to it.

Add a reset_ftrace_filter function to the ftrace self tests to allow for the
tests to have a generic way to clear them. It also resets any functions that
are listed in that file as well.

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