linux_dsm_epyc7002/tools/testing/selftests/ftrace/test.d
Steven Rostedt (VMware) 43bb45da82 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>
2017-04-18 13:48:26 -04:00
..
00basic ftracetest: Convert exit -1 to exit $FAIL 2015-03-31 10:15:46 -06:00
event kselftests/ftrace: Add a test case for event pid filtering 2016-05-16 09:02:03 -06:00
ftrace selftests: ftrace: Add a selftest to test event enable/disable func trigger 2017-04-18 13:48:26 -04:00
instances ftracetest: Use proper logic to find process PID 2016-05-23 10:04:46 -04:00
kprobe tracing/kprobes: expose maxactive for kretprobe in kprobe_events 2017-04-04 10:32:03 -04:00
trigger selftests: ftrace: Fix trigger-mod to run without syscall trace 2016-11-22 15:52:08 -05:00
functions selftests: ftrace: Add a way to reset triggers in the set_ftrace_filter file 2017-04-18 13:48:25 -04:00
template ftracetest: Add POSIX.3 standard and XFAIL result codes 2014-10-03 16:44:02 -04:00