]> asedeno.scripts.mit.edu Git - linux.git/commit
torture: Use elapsed time to detect hangs
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Mar 2014 17:34:18 +0000 (10:34 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:46:18 +0000 (09:46 -0700)
commit0bca7c33ba7785083f38324cc221dfaa35c1c7cf
tree5e420f26c0271575d896812dbdfb7426acedf609
parentd0d0606e2c13ad445a58b9d9547de617429cabf9
torture: Use elapsed time to detect hangs

The kvm-test-1-run.sh currently counts "sleep 1" commands to detect
hangs.  This can fail spectacularly on busy systems, where "sleep 1"
might take far longer than one second to complete.  This commit
therefore changes hang detection to use elapsed time measurements.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh