aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/rcutorture/bin/kvm.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-02-11 12:37:46 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-03-22 08:28:34 -0700
commit040accb3cd4ac4a8d151413f569b7ba6d918a19c (patch)
tree4aaaba97ac9982d836f41f0ddb00b728519bf1af /tools/testing/selftests/rcutorture/bin/kvm.sh
parenttorture: Reverse jittering and duration parameters for jitter.sh (diff)
downloadwireguard-linux-040accb3cd4ac4a8d151413f569b7ba6d918a19c.tar.xz
wireguard-linux-040accb3cd4ac4a8d151413f569b7ba6d918a19c.zip
torture: Abstract jitter.sh start/stop into scripts
This commit creates jitterstart.sh and jitterstop.sh scripts that handle the starting and stopping of the jitter.sh scripts. These must be sourced using the bash "." command to allow the generated script to wait on the backgrounded jitter.sh scripts. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index a2ee3f2fff3c..d6973e4a2ecf 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -502,15 +502,12 @@ function dump(first, pastlast, batchnum)
print "if test -n \"$needqemurun\""
print "then"
print "\techo ---- Starting kernels. `date` | tee -a " rd "log";
- print "\ttouch " rd "jittering"
- for (j = 0; j < njitter; j++)
- print "\tjitter.sh " j " " rd "jittering " dur " " ja[2] " " ja[3] "&"
+ print "\t. jitterstart.sh " njitter " " rd " " dur " " ja[2] " " ja[3]
print "\twhile ls $runfiles > /dev/null 2>&1"
print "\tdo"
print "\t\t:"
print "\tdone"
- print "\trm -f " rd "jittering"
- print "\twait"
+ print "\t. jitterstop.sh " rd
print "\techo ---- All kernel runs complete. `date` | tee -a " rd "log";
print "else"
print "\twait"