Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rcutorture: Print end-of-test state in kvm.sh summary

This commit adds the end-of-test test, if present in the console output,
to the kvm.sh test summary that is printed by kvm-recheck.sh. Note that
this only applies to rcutorture console output.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Nicholas Piggin <npiggin@gmail.com>

+6 -2
+6 -2
tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh
··· 34 34 35 35 configfile=`echo $i | sed -e 's/^.*\///'` 36 36 ngps=`grep ver: $i/console.log 2> /dev/null | tail -1 | sed -e 's/^.* ver: //' -e 's/ .*$//'` 37 + stopstate="`grep 'End-test grace-period state: g' $i/console.log 2> /dev/null | 38 + tail -1 | sed -e 's/^\[[ 0-9.]*] //' | 39 + awk '{ print \"[\" $1 \" \" $5 \" \" $6 \" \" $7 \"]\"; }' | 40 + tr -d '\012\015'`" 37 41 if test -z "$ngps" 38 42 then 39 - echo "$configfile -------" 43 + echo "$configfile ------- " $stopstate 40 44 else 41 45 title="$configfile ------- $ngps grace periods" 42 46 dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null` ··· 52 48 BEGIN { print ngps / dur }' < /dev/null` 53 49 title="$title ($ngpsps per second)" 54 50 fi 55 - echo $title 51 + echo $title $stopstate 56 52 nclosecalls=`grep --binary-files=text 'torture: Reader Batch' $i/console.log | tail -1 | awk '{for (i=NF-8;i<=NF;i++) sum+=$i; } END {print sum}'` 57 53 if test -z "$nclosecalls" 58 54 then