diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-01-14 01:57:48 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-18 15:25:54 -0500 |
commit | 4a261dbceaaece2018ef03b16d5092c09147df28 (patch) | |
tree | 1ff96beedb887db21112b57504e1fe171de169ce /tools/testing/selftests/rcutorture/bin | |
parent | 1219c8636cc51eaed1529c9d5ed4184f726c8f24 (diff) |
rcutorture: Move common boot flags to kvm-test-1-rcu.sh
Currently, most boot flags are calculated in kvm-test-1-rcu.sh, except
that rcutorture.test_no_idle_hz and rcutorture.verbose are set up by
kvm.sh. This commit promotes one-stop shopping by consolidating the
determination of boot flags into kvm-test-1-rcu.sh.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh | 8 | ||||
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh index 151b23788935..2cb7facbc86d 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh | |||
@@ -6,15 +6,15 @@ | |||
6 | # Execute this in the source tree. Do not run it as a background task | 6 | # Execute this in the source tree. Do not run it as a background task |
7 | # because qemu does not seem to like that much. | 7 | # because qemu does not seem to like that much. |
8 | # | 8 | # |
9 | # Usage: sh kvm-test-1-rcu.sh config builddir resdir minutes qemu-args bootargs | 9 | # Usage: sh kvm-test-1-rcu.sh config builddir resdir minutes qemu-args boot_args |
10 | # | 10 | # |
11 | # qemu-args defaults to "" -- you will want "-nographic" if running headless. | 11 | # qemu-args defaults to "" -- you will want "-nographic" if running headless. |
12 | # bootargs defaults to "root=/dev/sda noapic selinux=0 console=ttyS0" | 12 | # boot_args defaults to "root=/dev/sda noapic selinux=0 console=ttyS0" |
13 | # "initcall_debug debug rcutorture.stat_interval=15" | 13 | # "initcall_debug debug rcutorture.stat_interval=15" |
14 | # "rcutorture.shutdown_secs=$((minutes * 60))" | 14 | # "rcutorture.shutdown_secs=$((minutes * 60))" |
15 | # "rcutorture.rcutorture_runnable=1" | 15 | # "rcutorture.rcutorture_runnable=1" |
16 | # | 16 | # |
17 | # Anything you specify for either qemu-args or bootargs is appended to | 17 | # Anything you specify for either qemu-args or boot_args is appended to |
18 | # the default values. The "-smp" value is deduced from the contents of | 18 | # the default values. The "-smp" value is deduced from the contents of |
19 | # the config fragment. | 19 | # the config fragment. |
20 | # | 20 | # |
@@ -138,7 +138,7 @@ boot_args="`rcutorture_param_onoff "$boot_args" $builddir/.config`" | |||
138 | # Generate rcu_barrier() boot parameter | 138 | # Generate rcu_barrier() boot parameter |
139 | boot_args="`rcutorture_param_n_barrier_cbs "$boot_args"`" | 139 | boot_args="`rcutorture_param_n_barrier_cbs "$boot_args"`" |
140 | # Pull in standard rcutorture boot arguments | 140 | # Pull in standard rcutorture boot arguments |
141 | boot_args="$boot_args rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1" | 141 | boot_args="$boot_args rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1 rcutorture.test_no_idle_hz=1 rcutorture.verbose=1" |
142 | 142 | ||
143 | echo $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd | 143 | echo $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd |
144 | if test -n "$RCU_BUILDONLY" | 144 | if test -n "$RCU_BUILDONLY" |
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index f60f98415f13..979881baa80f 100644 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -203,7 +203,7 @@ do | |||
203 | fi | 203 | fi |
204 | mkdir "${rd}" | 204 | mkdir "${rd}" |
205 | echo Results directory: $rd | 205 | echo Results directory: $rd |
206 | kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic $RCU_QEMU_ARG" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 $RCU_BOOTARGS" | 206 | kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic $RCU_QEMU_ARG" "$RCU_BOOTARGS" |
207 | done | 207 | done |
208 | # Tracing: trace_event=rcu:rcu_grace_period,rcu:rcu_future_grace_period,rcu:rcu_grace_period_init,rcu:rcu_nocb_wake,rcu:rcu_preempt_task,rcu:rcu_unlock_preempted_task,rcu:rcu_quiescent_state_report,rcu:rcu_fqs,rcu:rcu_callback,rcu:rcu_kfree_callback,rcu:rcu_batch_start,rcu:rcu_invoke_callback,rcu:rcu_invoke_kfree_callback,rcu:rcu_batch_end,rcu:rcu_torture_read,rcu:rcu_barrier | 208 | # Tracing: trace_event=rcu:rcu_grace_period,rcu:rcu_future_grace_period,rcu:rcu_grace_period_init,rcu:rcu_nocb_wake,rcu:rcu_preempt_task,rcu:rcu_unlock_preempted_task,rcu:rcu_quiescent_state_report,rcu:rcu_fqs,rcu:rcu_callback,rcu:rcu_kfree_callback,rcu:rcu_batch_start,rcu:rcu_invoke_callback,rcu:rcu_invoke_kfree_callback,rcu:rcu_batch_end,rcu:rcu_torture_read,rcu:rcu_barrier |
209 | 209 | ||