Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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: 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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
#!/bin/sh
# description: Basic trace file check
test -f README -a -f trace -a -f tracing_on -a -f trace_pipe
+6 −0
Original line number Diff line number Diff line
#!/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
+8 −0
Original line number Diff line number Diff line
#!/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