aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-04-19 12:44:01 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-05-15 13:32:17 -0400
commitb4e8afbd2113bccaa96f194ecf9f406259f0bd8e (patch)
treefa282c06edc0c9ce13310a2bdb048ccaee7ab9d9
parent413e5512bcb464633fbb1b56b665ff063f4e3cc9 (diff)
rcutorture: Abbreviate kvm.sh summary lines
With the addition of the end-of-test state, it is not uncommon for the kvm.sh summary lines to overflow 80 characters. This commit therefore applies abbreviations in order to make the line fit into 80 characters with high probability. And yes, I did make heavy use of punched cards back in the day, so 80 columns it is for my xterms! ;-) Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Tested-by: Nicholas Piggin <npiggin@gmail.com>
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh
index 166aed550bc9..477ecb1293ab 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh
@@ -42,7 +42,7 @@ if test -z "$ngps"
42then 42then
43 echo "$configfile ------- " $stopstate 43 echo "$configfile ------- " $stopstate
44else 44else
45 title="$configfile ------- $ngps grace periods" 45 title="$configfile ------- $ngps GPs"
46 dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null` 46 dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
47 if test -z "$dur" 47 if test -z "$dur"
48 then 48 then
@@ -50,7 +50,7 @@ else
50 else 50 else
51 ngpsps=`awk -v ngps=$ngps -v dur=$dur ' 51 ngpsps=`awk -v ngps=$ngps -v dur=$dur '
52 BEGIN { print ngps / dur }' < /dev/null` 52 BEGIN { print ngps / dur }' < /dev/null`
53 title="$title ($ngpsps per second)" 53 title="$title ($ngpsps/s)"
54 fi 54 fi
55 echo $title $stopstate 55 echo $title $stopstate
56 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}'` 56 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}'`