diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-10-09 14:02:00 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-12-03 13:11:15 -0500 |
commit | be70a73a1ab46860533dfa933d7b188ca053f0ec (patch) | |
tree | 592b9443cb5a7e886ee068a1bf81debe74347762 /tools | |
parent | 315c540d46f8f11fe2a84e627d9473e90441ae96 (diff) |
rcutorture: Allow Kconfig-related boot parameters to override
As it stands, the default kernel boot parameters generated from
the Kconfig fragment will override any supplied with the .boot
file that can optionally accompany a Kconfig fragment. Rearrange
ordering to permit the specific .boot arguments to override those
generated by analyzing the Kconfig fragment.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh | 10 |
1 files changed, 6 insertions, 4 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 9fd546ccb075..93342f7ce6d5 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh | |||
@@ -131,15 +131,17 @@ qemu_args="$qemu_args `identify_qemu_args "$QEMU" "$builddir/console.log"`" | |||
131 | # Generate qemu -append arguments | 131 | # Generate qemu -append arguments |
132 | qemu_append="`identify_qemu_append "$QEMU"`" | 132 | qemu_append="`identify_qemu_append "$QEMU"`" |
133 | 133 | ||
134 | # Pull in Kconfig-fragment boot parameters | ||
135 | boot_args="`configfrag_boot_params "$boot_args" "$config_template"`" | ||
134 | # Generate CPU-hotplug boot parameters | 136 | # Generate CPU-hotplug boot parameters |
135 | boot_args="`rcutorture_param_onoff "$boot_args" $builddir/.config`" | 137 | boot_args="`rcutorture_param_onoff "$boot_args" $builddir/.config`" |
136 | # Generate rcu_barrier() boot parameter | 138 | # Generate rcu_barrier() boot parameter |
137 | boot_args="`rcutorture_param_n_barrier_cbs "$boot_args"`" | 139 | boot_args="`rcutorture_param_n_barrier_cbs "$boot_args"`" |
138 | # Pull in Kconfig-fragment boot parameters | 140 | # Pull in standard rcutorture boot arguments |
139 | boot_args="`configfrag_boot_params "$boot_args" "$config_template"`" | 141 | boot_args="$boot_args rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1" |
140 | 142 | ||
141 | echo $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append \"$qemu_append rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1 $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 |
142 | $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1 $boot_args" & | 144 | $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append $boot_args" & |
143 | qemu_pid=$! | 145 | qemu_pid=$! |
144 | commandcompleted=0 | 146 | commandcompleted=0 |
145 | echo Monitoring qemu job at pid $qemu_pid | 147 | echo Monitoring qemu job at pid $qemu_pid |