]> git.baikalelectronics.ru Git - kernel.git/commit
torture: Check for nul bytes in console output
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 26 Aug 2014 18:35:43 +0000 (11:35 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:24:49 +0000 (16:24 -0700)
commit1fa2edeec887e541106e2b39067c9cd0c1d70442
tree24014a47a676c5dc02d5e0b77cb5e4ac851af225
parent52a53a507c87a70ae48f032776b0f6025e4f9ecc
torture: Check for nul bytes in console output

When starting a new torture run while an old one is still running, both
qemu processes can be outputting to the same console.out file.  This can
cause quite a bit of confusion, so this commit checks for this situation,
which is normally indicated by nul bytes in the console output.  Yes,
if your new run uses up an exact number of blocks of the file, this
check will be ineffective, but the odds are not bad.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
tools/testing/selftests/rcutorture/bin/parse-console.sh