Skip to content

Commit 010e577

Browse files
committed
torture: Allow four-digit repetition numbers for --configs parameter
In a clear-cut case of "not thinking big enough", kvm.sh limits the multipliers for torture-test scenarios to three digits. Although this is large enough for any single system that I have ever run rcutorture on, it does become a problem when you want to use kvm-remote.sh to run as many instances of TREE09 as fit on a set of 20 systems with 80 CPUs each. Yes, one could simply say "--configs '800*TREE09 800*TREE09'", but this commit removes the need for that sort of hacky workaround by permitting four-digit repetition numbers, thus allowing "--configs '1600*TREE09'". Five-digit repetition numbers remain off the menu. Should they ever really be needed, they can easily be added! Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent bee6f21 commit 010e577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/testing/selftests/rcutorture/bin

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ configs_derep=
280280
for CF in $configs
281281
do
282282
case $CF in
283-
[0-9]\**|[0-9][0-9]\**|[0-9][0-9][0-9]\**)
283+
[0-9]\**|[0-9][0-9]\**|[0-9][0-9][0-9]\**|[0-9][0-9][0-9][0-9]\**)
284284
config_reps=`echo $CF | sed -e 's/\*.*$//'`
285285
CF1=`echo $CF | sed -e 's/^[^*]*\*//'`
286286
;;

0 commit comments

Comments
 (0)