torture: Make parse-rcutorture.sh less RCU-specific

It can be a bit jarring to see a locking test complain about RCU, so
this commit renames parse-rcutorture.sh to parse-torture.sh and makes
the messages it emits more generic.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
Paul E. McKenney 2014-02-26 10:57:04 -08:00
parent 9352ad1339
commit 4074b51b6f
3 changed files with 13 additions and 13 deletions

View file

@ -41,7 +41,7 @@ do
kvm-recheck-${TORTURE_SUITE}.sh $i kvm-recheck-${TORTURE_SUITE}.sh $i
configcheck.sh $i/.config $i/ConfigFragment configcheck.sh $i/.config $i/ConfigFragment
parse-build.sh $i/Make.out $configfile parse-build.sh $i/Make.out $configfile
parse-rcutorture.sh $i/console.log $configfile parse-torture.sh $i/console.log $configfile
parse-console.sh $i/console.log $configfile parse-console.sh $i/console.log $configfile
if test -r $i/Warnings if test -r $i/Warnings
then then

View file

@ -199,5 +199,5 @@ then
fi fi
cp $builddir/console.log $resdir cp $builddir/console.log $resdir
parse-${TORTURE_SUITE}torture.sh $resdir/console.log $title parse-torture.sh $resdir/console.log $title
parse-console.sh $resdir/console.log $title parse-console.sh $resdir/console.log $title

View file

@ -1,14 +1,14 @@
#!/bin/sh #!/bin/sh
# #
# Check the console output from an rcutorture run for goodness. # Check the console output from a torture run for goodness.
# The "file" is a pathname on the local system, and "title" is # The "file" is a pathname on the local system, and "title" is
# a text string for error-message purposes. # a text string for error-message purposes.
# #
# The file must contain rcutorture output, but can be interspersed # The file must contain torture output, but can be interspersed
# with other dmesg text. # with other dmesg text, as in console-log output.
# #
# Usage: # Usage:
# sh parse-rcutorture.sh file title # sh parse-torture.sh file title
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -28,7 +28,7 @@
# #
# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com> # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
T=/tmp/parse-rcutorture.sh.$$ T=/tmp/parse-torture.sh.$$
file="$1" file="$1"
title="$2" title="$2"
@ -36,13 +36,13 @@ trap 'rm -f $T.seq' 0
. functions.sh . functions.sh
# check for presence of rcutorture.txt file # check for presence of torture output file.
if test -f "$file" -a -r "$file" if test -f "$file" -a -r "$file"
then then
: :
else else
echo $title unreadable rcutorture.txt file: $file echo $title unreadable torture output file: $file
exit 1 exit 1
fi fi
@ -76,9 +76,9 @@ BEGIN {
END { END {
if (badseq) { if (badseq) {
if (badseqno1 == badseqno2 && badseqno2 == ver) if (badseqno1 == badseqno2 && badseqno2 == ver)
print "RCU GP HANG at " ver " rcutorture stat " badseqnr; print "GP HANG at " ver " torture stat " badseqnr;
else else
print "BAD SEQ " badseqno1 ":" badseqno2 " last:" ver " RCU version " badseqnr; print "BAD SEQ " badseqno1 ":" badseqno2 " last:" ver " version " badseqnr;
} }
}' > $T.seq }' > $T.seq
@ -91,13 +91,13 @@ then
exit 2 exit 2
fi fi
else else
if grep -q RCU_HOTPLUG $file if grep -q "_HOTPLUG:" $file
then then
print_warning HOTPLUG FAILURES $title `cat $T.seq` print_warning HOTPLUG FAILURES $title `cat $T.seq`
echo " " $file echo " " $file
exit 3 exit 3
fi fi
echo $title no success message, `grep --binary-files=text 'ver:' $file | wc -l` successful RCU version messages echo $title no success message, `grep --binary-files=text 'ver:' $file | wc -l` successful version messages
if test -s $T.seq if test -s $T.seq
then then
print_warning $title `cat $T.seq` print_warning $title `cat $T.seq`