mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-11 08:14:27 +08:00
03c201759e
Some of the basic ftrace selftests should also be run in an instance. These test a quick case of running all tracers in the available_tracers file within the instance. The other is testing the clock used for the instance. Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Acked-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
10 lines
215 B
Bash
10 lines
215 B
Bash
#!/bin/sh
|
|
# description: Basic trace clock test
|
|
# flags: instance
|
|
test -f trace_clock
|
|
for c in `cat trace_clock | tr -d \[\]`; do
|
|
echo $c > trace_clock
|
|
grep '\['$c'\]' trace_clock
|
|
done
|
|
echo local > trace_clock
|