Skip to content

Commit a3ba497

Browse files
committed
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 <[email protected]>
1 parent d3cb263 commit a3ba497

File tree

1 file changed

+4
-0
lines changed
  • tools/testing/selftests/rcutorture/bin

1 file changed

+4
-0
lines changed

tools/testing/selftests/rcutorture/bin/kvm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ usage () {
7373
while test $# -gt 0
7474
do
7575
case "$1" in
76+
--allcpus)
77+
cpus=$TORTURE_ALLOTED_CPUS
78+
max_cpus=$TORTURE_ALLOTED_CPUS
79+
;;
7680
--bootargs|--bootarg)
7781
checkarg --bootargs "(list of kernel boot arguments)" "$#" "$2" '.*' '^--'
7882
TORTURE_BOOTARGS="$2"

0 commit comments

Comments
 (0)