diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2013-08-05 22:12:47 +0200 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2013-08-05 22:12:47 +0200 |
commit | e08b7c9117c31327ba3a94a01f22c205df40c54c (patch) | |
tree | 59b18ea50c0bcd824a2cc68872cc0af50a5b4775 | |
parent | b748d038b37380ac8da32b159f6e273c248774bd (diff) | |
download | dynticks-testing-e08b7c9117c31327ba3a94a01f22c205df40c54c.tar.gz |
nohz_tests: Make target optable
Let the user choose its full dynticks CPU target test in a variable.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
-rwxr-xr-x | run | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,9 @@ #!/bin/bash +# Full dyntick CPU on which we'll run the user loop, +# it must be part of nohz_full kernel parameter +TARGET=1 + NR_CPUS=$(getconf _NPROCESSORS_ONLN) # Migrate nocb tasks to CPU 0 @@ -43,10 +47,10 @@ echo 1 > $DIR/events/timer/tick_stop/enable echo nop > $DIR/current_tracer echo 1 > $DIR/tracing_on -# Run a 10 secs user loop on CPU 1 -taskset -c 1 ./user_loop & +# Run a 10 secs user loop on target +taskset -c $TARGET ./user_loop & sleep 10 killall user_loop -# Checkout the trace in trace.1 -cat /sys/kernel/debug/tracing/per_cpu/cpu1/trace > trace.1 +# Checkout the trace in trace.* file +cat /sys/kernel/debug/tracing/per_cpu/cpu$TARGET/trace > trace.$TARGET |