Commit 03e16645 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Steven Rostedt

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.novalocalAcked-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 6e68e6c5
#!/bin/sh
# description: Basic trace file check
test -f README -a -f trace -a -f tracing_on -a -f trace_pipe
#!/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
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment