diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-17 17:33:50 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-18 13:48:26 -0400 |
commit | 43bb45da82f94fffd5fb816e1fd2453561747c8b (patch) | |
tree | 8499bb32384e27355ef8b5bff39436da1b47c0af /kernel/trace/trace_functions.c | |
parent | 8e5e19c1b98394c2cdc186a4b0be422fe6e7217a (diff) | |
download | linux-43bb45da82f94fffd5fb816e1fd2453561747c8b.tar.gz linux-43bb45da82f94fffd5fb816e1fd2453561747c8b.tar.bz2 linux-43bb45da82f94fffd5fb816e1fd2453561747c8b.zip |
selftests: ftrace: Add a selftest to test event enable/disable func trigger
This adds a test to enable and disable trace events via the function
triggers. It tests enabling and disabling the sched:sched_switch event via
the the event_enable and event_disable function triggers attached to the
schedule() kernel function.
The test does the following:
o disable all events
o disables or enables the sched_switch event
o writes schedule:event_enable/disable:sched:sched_switch into set_ftrace_filter
o 5 times it checks to make sure:
. Writes 0/1 into the sched_switch/enable
. Checks that the sched_switch/enable goes back to 1/0
o Resets the events
o writes schedule:event_enable/disable:sched:sched_switch:3 into set_ftrace_filter
o Does a loop of 3 to see that sched_switch/enable file gets updated
o Makes sure the sched_switch/enable stops getting updated
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_functions.c')
0 files changed, 0 insertions, 0 deletions