doc.2015.01.07a: Documentation updates. fixes.2015.01.15a: Miscellaneous fixes. preempt.2015.01.06a: Changes to handling of lists of preempted tasks. srcu.2015.01.06a: SRCU updates. stall.2015.01.16a: RCU CPU stall-warning updates and fixes. torture.2015.01.11a: RCU torture-test updates and fixes.
78e691f6 parents d87510c 6047967 ab954c1 83fe27e 630181c 7602de447 files · +562 −567Browse filesShowing the changes to tools/testing (5 of 47 files). Show all
Unified · Split
| @@ -24,7 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | |
| 25 | 25 | ncpus=`grep '^processor' /proc/cpuinfo | wc -l` |
| 26 | 26 | idlecpus=`mpstat | tail -1 | \ |
| 27 | − awk -v ncpus=$ncpus '{ print ncpus * ($7 + $12) / 100 }'` | |
| 27 | + awk -v ncpus=$ncpus '{ print ncpus * ($7 + $NF) / 100 }'` | |
| 28 | 28 | awk -v ncpus=$ncpus -v idlecpus=$idlecpus < /dev/null ' |
| 29 | 29 | BEGIN { |
| 30 | 30 | cpus2use = idlecpus; |
| @@ -30,6 +30,7 @@ else · 29 unmodified lines | ||
| 30 | 30 | echo Unreadable results directory: $i |
| 31 | 31 | exit 1 |
| 32 | 32 | fi |
| 33 | +. tools/testing/selftests/rcutorture/bin/functions.sh | |
| 33 | 34 | |
| 34 | 35 | configfile=`echo $i | sed -e 's/^.*\///'` |
| 35 | 36 | ngps=`grep ver: $i/console.log 2> /dev/null | tail -1 | sed -e 's/^.* ver: //' -e 's/ .*$//'` |
| @@ -48,4 +49,21 @@ else · 12 unmodified lines | ||
| 48 | 49 | title="$title ($ngpsps per second)" |
| 49 | 50 | fi |
| 50 | 51 | echo $title |
| 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}'` | |
| 53 | + if test -z "$nclosecalls" | |
| 54 | + then | |
| 55 | + exit 0 | |
| 56 | + fi | |
| 57 | + if test "$nclosecalls" -eq 0 | |
| 58 | + then | |
| 59 | + exit 0 | |
| 60 | + fi | |
| 61 | + # Compute number of close calls per tenth of an hour | |
| 62 | + nclosecalls10=`awk -v nclosecalls=$nclosecalls -v dur=$dur 'BEGIN { print int(nclosecalls * 36000 / dur) }' < /dev/null` | |
| 63 | + if test $nclosecalls10 -gt 5 -a $nclosecalls -gt 1 | |
| 64 | + then | |
| 65 | + print_bug $nclosecalls "Reader Batch close calls in" $(($dur/60)) minute run: $i | |
| 66 | + else | |
| 67 | + print_warning $nclosecalls "Reader Batch close calls in" $(($dur/60)) minute run: $i | |
| 68 | + fi | |
| 51 | 69 | fi |
| @@ -8,9 +8,9 @@ · 7 unmodified lines | ||
| 8 | 8 | # |
| 9 | 9 | # Usage: kvm-test-1-run.sh config builddir resdir minutes qemu-args boot_args |
| 10 | 10 | # |
| 11 | −# qemu-args defaults to "-nographic", along with arguments specifying the | |
| 12 | −# number of CPUs and other options generated from | |
| 13 | −# the underlying CPU architecture. | |
| 11 | +# qemu-args defaults to "-enable-kvm -soundhw pcspk -nographic", along with | |
| 12 | +# arguments specifying the number of CPUs and other | |
| 13 | +# options generated from the underlying CPU architecture. | |
| 14 | 14 | # boot_args defaults to value returned by the per_version_boot_params |
| 15 | 15 | # shell function. |
| 16 | 16 | # |
| @@ -138,7 +138,7 @@ then · 121 unmodified lines | ||
| 138 | 138 | fi |
| 139 | 139 | |
| 140 | 140 | # Generate -smp qemu argument. |
| 141 | −qemu_args="-nographic $qemu_args" | |
| 141 | +qemu_args="-enable-kvm -soundhw pcspk -nographic $qemu_args" | |
| 142 | 142 | cpu_count=`configNR_CPUS.sh $config_template` |
| 143 | 143 | cpu_count=`configfrag_boot_cpus "$boot_args" "$config_template" "$cpu_count"` |
| 144 | 144 | vcpus=`identify_qemu_vcpus` |
| @@ -168,6 +168,7 @@ then · 23 unmodified lines | ||
| 168 | 168 | touch $resdir/buildonly |
| 169 | 169 | exit 0 |
| 170 | 170 | fi |
| 171 | +echo "NOTE: $QEMU either did not run or was interactive" > $builddir/console.log | |
| 171 | 172 | echo $QEMU $qemu_args -m 512 -kernel $resdir/bzImage -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd |
| 172 | 173 | ( $QEMU $qemu_args -m 512 -kernel $resdir/bzImage -append "$qemu_append $boot_args"; echo $? > $resdir/qemu-retval ) & |
| 173 | 174 | qemu_pid=$! |
| @@ -26,12 +26,15 @@ · 25 unmodified lines | ||
| 26 | 26 | # |
| 27 | 27 | # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com> |
| 28 | 28 | |
| 29 | −T=$1 | |
| 29 | +F=$1 | |
| 30 | 30 | title=$2 |
| 31 | +T=/tmp/parse-build.sh.$$ | |
| 32 | +trap 'rm -rf $T' 0 | |
| 33 | +mkdir $T | |
| 31 | 34 | |
| 32 | 35 | . functions.sh |
| 33 | 36 | |
| 34 | −if grep -q CC < $T | |
| 37 | +if grep -q CC < $F | |
| 35 | 38 | then |
| 36 | 39 | : |
| 37 | 40 | else |
| @@ -39,18 +42,21 @@ else · 1 unmodified line | ||
| 39 | 42 | exit 1 |
| 40 | 43 | fi |
| 41 | 44 | |
| 42 | −if grep -q "error:" < $T | |
| 45 | +if grep -q "error:" < $F | |
| 43 | 46 | then |
| 44 | 47 | print_bug $title build errors: |
| 45 | − grep "error:" < $T | |
| 48 | + grep "error:" < $F | |
| 46 | 49 | exit 2 |
| 47 | 50 | fi |
| 48 | −exit 0 | |
| 49 | 51 | |
| 50 | −if egrep -q "rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T | |
| 52 | +grep warning: < $F > $T/warnings | |
| 53 | +grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings | |
| 54 | +grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings | |
| 55 | +cat $T/hwarnings $T/cwarnings > $T/rcuwarnings | |
| 56 | +if test -s $T/rcuwarnings | |
| 51 | 57 | then |
| 52 | 58 | print_warning $title build errors: |
| 53 | − egrep "rcu[^/]*\.c.*warning:|rcu.*\.h.*warning:" < $T | |
| 59 | + cat $T/rcuwarnings | |
| 54 | 60 | exit 2 |
| 55 | 61 | fi |
| 56 | 62 | exit 0 |
| @@ -36,7 +36,7 @@ if grep -Pq '\x00' < $file · 35 unmodified lines | ||
| 36 | 36 | then |
| 37 | 37 | print_warning Console output contains nul bytes, old qemu still running? |
| 38 | 38 | fi |
| 39 | −egrep 'Badness|WARNING:|Warn|BUG|===========|Call Trace:|Oops:' < $file | grep -v 'ODEBUG: ' | grep -v 'Warning: unable to open an initial console' > $T | |
| 39 | +egrep 'Badness|WARNING:|Warn|BUG|===========|Call Trace:|Oops:|Stall ended before state dump start' < $file | grep -v 'ODEBUG: ' | grep -v 'Warning: unable to open an initial console' > $T | |
| 40 | 40 | if test -s $T |
| 41 | 41 | then |
| 42 | 42 | print_warning Assertion failure in $file $title |