diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-11-06 11:04:30 +0900 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-06 08:40:59 -0500 |
commit | 815b18ea66d6fb67a3534edf68dfa23bdcec0485 (patch) | |
tree | ecf79057f82581460578072355f7fde8ba50ec6c /tools/testing/selftests/ftrace/test.d/00basic/basic4.tc | |
parent | ftracetest: Clear trace buffer after running kprobe testcases (diff) | |
download | linux-dev-815b18ea66d6fb67a3534edf68dfa23bdcec0485.tar.xz linux-dev-815b18ea66d6fb67a3534edf68dfa23bdcec0485.zip |
ftracetest: Add basic event tracing test cases
This patch adds basic event tracing tests like enable/disable with
top-level, subsystem-level and individual event files.
# ./ftracetest
=== Ftrace unit tests ===
[1] Basic trace file check [PASS]
[2] Basic trace clock test [PASS]
[3] Basic event tracing check [PASS]
[4] Basic test for tracers [PASS]
[5] event tracing - enable/disable with top level files [PASS]
[6] event tracing - enable/disable with subsystem level files [PASS]
[7] event tracing - enable/disable with event level files [PASS]
[8] ftrace - function graph filters [PASS]
[9] ftrace - function profiler with function tracing [PASS]
[10] ftrace - function graph filters with stack tracer [PASS]
[11] Kretprobe dynamic event with arguments [PASS]
[12] Kprobe dynamic event - busy event check [PASS]
[13] Kprobe dynamic event with arguments [PASS]
[14] Kprobe dynamic event - adding and removing [PASS]
# of passed: 14
# of failed: 0
# of unresolved: 0
# of untested: 0
# of unsupported: 0
# of xfailed: 0
# of undefined(test bug): 0
Link: http://lkml.kernel.org/r/1415239470-28705-3-git-send-email-namhyung@kernel.org
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/00basic/basic4.tc')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/00basic/basic4.tc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc b/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc new file mode 100644 index 000000000000..fd9c49a13612 --- /dev/null +++ b/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc @@ -0,0 +1,5 @@ +#!/bin/sh +# description: Basic event tracing check +test -f available_events -a -f set_event -a -d events +# check scheduler events are available +grep -q sched available_events && exit 0 || exit -1
\ No newline at end of file |