From: "Paul E. McKenney" <[email protected]>

In torture.sh, the testing of refscale incorrectly used verbose_batched
as a kernel boot parameter, which causes this parameter to be passed
to the init process.  This commit therefore prefixes it with refscale,
so that refscale.verbose_batched is passed to the kernel.

Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
---
 tools/testing/selftests/rcutorture/bin/torture.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh 
b/tools/testing/selftests/rcutorture/bin/torture.sh
index 12b50a4a881a..d5a0d8a33c27 100755
--- a/tools/testing/selftests/rcutorture/bin/torture.sh
+++ b/tools/testing/selftests/rcutorture/bin/torture.sh
@@ -472,7 +472,7 @@ do
        if test -n "$firsttime"
        then
                torture_bootargs="refscale.scale_type="$prim" 
refscale.nreaders=$HALF_ALLOTED_CPUS refscale.loops=10000 refscale.holdoff=20 
torture.disable_onoff_at_boot"
-               torture_set "refscale-$prim" 
tools/testing/selftests/rcutorture/bin/kvm.sh --torture refscale --allcpus 
--duration 5 --kconfig "CONFIG_TASKS_TRACE_RCU=y 
CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --bootargs 
"verbose_batched=$VERBOSE_BATCH_CPUS torture.verbose_sleep_frequency=8 
torture.verbose_sleep_duration=$VERBOSE_BATCH_CPUS" --trust-make
+               torture_set "refscale-$prim" 
tools/testing/selftests/rcutorture/bin/kvm.sh --torture refscale --allcpus 
--duration 5 --kconfig "CONFIG_TASKS_TRACE_RCU=y 
CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --bootargs 
"refscale.verbose_batched=$VERBOSE_BATCH_CPUS torture.verbose_sleep_frequency=8 
torture.verbose_sleep_duration=$VERBOSE_BATCH_CPUS" --trust-make
                mv $T/last-resdir-nodebug $T/first-resdir-nodebug || :
                if test -f "$T/last-resdir-kasan"
                then
-- 
2.34.1

Reply via email to