]> git.baikalelectronics.ru Git - kernel.git/commit
torture: Allow "CFLIST" to specify default list of scenarios
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 22 Nov 2019 14:14:21 +0000 (06:14 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Dec 2019 21:00:29 +0000 (13:00 -0800)
commita04dcb2c27efd08719b7ab82b27ed8e88494308d
treea485150ef3ff4d66335701f8cd76ef832e107dfd
parenta625069d109c47cf509652281b5082d74f27ed7a
torture: Allow "CFLIST" to specify default list of scenarios

On a large system, it can be convenient to tell rcutorture to run
several instances of the default scenarios.  Currently, this requires
explicitly listing them, for example, "--configs '2*SRCU-N 2*SRCU-P...'".
Although this works, it is rather inconvenient.

This commit therefore allows "CFLIST" to be specified to indicate the
default list of scenarios called out in the relevant CFLIST file, for
example, for RCU, tools/testing/selftests/rcutorture/configs/rcu/CFLIST.
In addition, multipliers may be used to run multiple instances of all
the scenarios.  For example, on a 256-CPU system, "--configs '3*CFLIST'"
would run three instances of each scenario concurrently with one CPU
left over.  Thus "--configs '3*CFLIST TINY01'" would exactly consume all
256 CPUs, which makes rcutorture's jitter feature more effective.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm.sh