summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-18 00:33:50 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-18 20:48:26 +0300
commit43bb45da82f94fffd5fb816e1fd2453561747c8b (patch)
tree8499bb32384e27355ef8b5bff39436da1b47c0af /tools/perf/scripts/python/export-to-postgresql.py
parent8e5e19c1b98394c2cdc186a4b0be422fe6e7217a (diff)
downloadlinux-43bb45da82f94fffd5fb816e1fd2453561747c8b.tar.xz
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions