linux_dsm_epyc7002/tools/testing/selftests/ftrace/test.d
Steven Rostedt (VMware) a9064f676e selftests: ftrace: Add test to test reading of set_ftrace_file
The set_ftrace_file lists both functions that are filtered, as well as
function probes (triggers) that are attached to a function, like traceon or
stacktrace, etc. The reading of this file is not as trivial as most pseudo
files are, and there's been various bugs that have appeared in the past
when there's a mix of probes and functions listed. There's also a difference
when reading the file using dd with a block size of 1.

This test performs the following:

 o Resets set_ftrace_filter

 o Makes sure only "#### all functions enabled ####" is listed

    (All checks uses cat, and dd with bs=1 and bs=100)

 o Adds a traceon trigger to schedule

 o Checks if only "#### all function enabled ####" and the trigger is there.

 o Adds tracing of schedule

 o Checks if only schedule and the trigger is there

 o Adds tracing of do_IRQ as well

 o Checks if only schedule, do_IRQ and the trigger is there

 o Adds a traceon trigger to do_IRQ

 o Checks if only schedule, do_IRQ and both triggers are there

 o Removes tracing of do_IRQ

 o Checks if only schedule and both triggers are there

 o Removes tracing of schedule

 o Checks if only  "#### all functions enabled ####" and both triggers are there

 o Removes the triggers

 o Checks if only "#### all functions enabled ####" is there

 o Adds tracing of schedule

 o Checks if only schedule is there

 o Adds tracing of do_IRQ

 o Checks if only schedule and do_IRQ are there

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2017-04-18 13:48:27 -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 test to test reading of set_ftrace_file 2017-04-18 13:48:27 -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