]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
refperf: Output per-experiment data points
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 26 May 2020 22:30:09 +0000 (15:30 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:45 +0000 (12:00 -0700)
Currently, it is necessary to manually edit the console output to see
anything more than statistics, and sometimes the statistics can indicate
outliers that need more investigation.  This commit therefore dumps out
the per-experiment measurements, sorted in ascending order, just before
dumping out the statistics.

Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-recheck-refperf.sh

index 0660f3fab215bb5ce5f368cd5442c5632b917931..0e29cfd9986c0fb096e3822171f16d43c1d10b9c 100755 (executable)
@@ -59,6 +59,10 @@ END {
                medianvalue = (readertimes[medianidx - 1] + readertimes[medianidx]) / 2;
        else
                medianvalue = readertimes[medianidx];
+       points = "Points:";
+       for (i = 1; i <= newNR; i++)
+               points = points " " readertimes[i];
+       print points;
        print "Average reader duration: " sum / newNR " nanoseconds";
        print "Minimum reader duration: " readertimes[1];
        print "Median reader duration: " medianvalue;