diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-01-30 16:51:36 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-31 13:38:57 -0700 |
commit | 2b03d038457fc8d694d34981cb0a2f1702ba35d6 (patch) | |
tree | 801cf48041b05e7c275fff70f124f1cbbfa11c37 /tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh | |
parent | rcutorture: Make rcuperf collect expedited event-trace data (diff) | |
download | linux-dev-2b03d038457fc8d694d34981cb0a2f1702ba35d6.tar.xz linux-dev-2b03d038457fc8d694d34981cb0a2f1702ba35d6.zip |
rcutorture: Make scripts analyze rcuperf trace data, if present
The rcuperf event-trace data is more accurate than are the rcuperf
printk()s because locking keeps things ordered. This commit therefore
parses and analyzes this event-trace data if present, and falls back on
the printk()s otherwise.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh index 1f72df8eedc7..8f3121afc716 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf.sh @@ -30,8 +30,15 @@ else echo Unreadable results directory: $i exit 1 fi +PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH . tools/testing/selftests/rcutorture/bin/functions.sh +if kvm-recheck-rcuperf-ftrace.sh $i +then + # ftrace data was successfully analyzed, call it good! + exit 0 +fi + configfile=`echo $i | sed -e 's/^.*\///'` sed -e 's/^\[[^]]*]//' < $i/console.log | @@ -85,4 +92,5 @@ END { print "99th percentile grace-period duration: " gptimes[pct99]; print "Maximum grace-period duration: " gptimes[newNR]; print "Grace periods: " ngps + 0 " Batches: " nbatches + 0 " Ratio: " ngps / nbatches; + print "Computed from rcuperf printk output."; }' |