]> git.baikalelectronics.ru Git - kernel.git/commit
torture: Handle systems lacking the mpstat command
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 21 Oct 2019 15:38:00 +0000 (08:38 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Dec 2019 21:00:27 +0000 (13:00 -0800)
commit6abd61f86e65b6541946b4b31150cb06fe5d4034
tree8645331ce3007a1003053f31a94fa6d5add5e480
parente1f2261821fda38a0a1c83a70c5a89c022b3f2e7
torture: Handle systems lacking the mpstat command

The rcutorture scripting uses the mpstat command to determine how much
the system is being used, and adjusts make's -j argument accordingly.
However, mpstat isn't installed by default, so it would be good if the
scripting does something useful when mpstat isn't present.

This commit therefore makes the scripts assumes that if mpstat is not
present, they are free to use all the CPUs.

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