ftracetest: Add ftrace basic testcases

Add ftrace basic testcases. This just checks ftrace debugfs
interface works as it is designed.

Link: http://lkml.kernel.org/p/20140922234252.23415.62897.stgit@kbuild-f20.novalocal

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
Masami Hiramatsu 2014-09-22 23:42:52 +00:00 committed by Steven Rostedt
parent 6e68e6c5e4
commit 03e166450f
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
# description: Basic trace file check
test -f README -a -f trace -a -f tracing_on -a -f trace_pipe

View file

@ -0,0 +1,6 @@
#!/bin/sh
# description: Basic test for tracers
for t in `cat available_tracers`; do
echo $t > current_tracer || exit 1
done
echo nop > current_tracer

View file

@ -0,0 +1,8 @@
#!/bin/sh
# description: Basic trace clock test
[ -f trace_clock ] || exit 1
for c in `cat trace_clock | tr -d \[\]`; do
echo $c > trace_clock || exit 1
grep '\['$c'\]' trace_clock || exit 1
done
echo local > trace_clock