aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-09-09 22:24:57 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-11-06 17:13:50 -0800
commit45c7b962014da36c2ac1aee6e5014b644ba37a84 (patch)
tree3adf5e0cfc74883b794092c1ed47a4be05d2a4da
parentrcuscale: Add RCU Tasks Trace (diff)
downloadlinux-dev-45c7b962014da36c2ac1aee6e5014b644ba37a84.tar.xz
linux-dev-45c7b962014da36c2ac1aee6e5014b644ba37a84.zip
rcuscale: Avoid divide by zero
The rcuscale test module does not use batches, so there is only ever one batch. This commit therefore informs the kvm-recheck-rcuscale.sh script of this fact of life. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh
index aa745152a525..b582113178ac 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh
@@ -32,7 +32,7 @@ sed -e 's/^\[[^]]*]//' < $i/console.log |
awk '
/-scale: .* gps: .* batches:/ {
ngps = $9;
- nbatches = $11;
+ nbatches = 1;
}
/-scale: .*writer-duration/ {