diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-09-10 08:24:57 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-11-07 04:13:50 +0300 |
commit | 45c7b962014da36c2ac1aee6e5014b644ba37a84 (patch) | |
tree | 3adf5e0cfc74883b794092c1ed47a4be05d2a4da | |
parent | 899f317e4886f916ed21027177177c11b577cea1 (diff) | |
download | linux-45c7b962014da36c2ac1aee6e5014b644ba37a84.tar.xz |
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-x | tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh | 2 |
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/ { |