From: Paul E. McKenney Date: Mon, 4 May 2020 23:41:53 +0000 (-0700) Subject: torture: Add --allcpus argument to the kvm.sh script X-Git-Tag: v5.10.7~2014^2^2^7~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3ba4972f2ef8408dcc8a2a3d433621d6c990594;p=platform%2Fkernel%2Flinux-rpi.git torture: Add --allcpus argument to the kvm.sh script Leaving off the kvm.sh script's --cpus argument results in the script testing the scenarios sequentially, which can be quite slow. However, having to specify the actual number of CPUs can be error-prone. This commit therefore adds a --allcpus argument that causes kvm.sh to use all available CPUs. Signed-off-by: Paul E. McKenney --- diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index c279cf9c..7dbce7a 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -73,6 +73,10 @@ usage () { while test $# -gt 0 do case "$1" in + --allcpus) + cpus=$TORTURE_ALLOTED_CPUS + max_cpus=$TORTURE_ALLOTED_CPUS + ;; --bootargs|--bootarg) checkarg --bootargs "(list of kernel boot arguments)" "$#" "$2" '.*' '^--' TORTURE_BOOTARGS="$2"