Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masami Hiramatsu and committed by
Steven Rostedt
03e16645 6e68e6c5

+17
+3
tools/testing/selftests/ftrace/test.d/00basic/basic1.tc
··· 1 + #!/bin/sh 2 + # description: Basic trace file check 3 + test -f README -a -f trace -a -f tracing_on -a -f trace_pipe
+6
tools/testing/selftests/ftrace/test.d/00basic/basic2.tc
··· 1 + #!/bin/sh 2 + # description: Basic test for tracers 3 + for t in `cat available_tracers`; do 4 + echo $t > current_tracer || exit 1 5 + done 6 + echo nop > current_tracer
+8
tools/testing/selftests/ftrace/test.d/00basic/basic3.tc
··· 1 + #!/bin/sh 2 + # description: Basic trace clock test 3 + [ -f trace_clock ] || exit 1 4 + for c in `cat trace_clock | tr -d \[\]`; do 5 + echo $c > trace_clock || exit 1 6 + grep '\['$c'\]' trace_clock || exit 1 7 + done 8 + echo local > trace_clock