diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-12-06 23:18:37 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-01-25 19:17:41 -0500 |
commit | f5a5386bcaee222d2565d87ab33f0896f91a11ef (patch) | |
tree | 106992355f6464141c079301b3b6accfca01fa89 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
rcutorture: Add checks for rcutorture writer starvation
This commit adds checks for rcutorture writer starvation, so that
instances will be added to the test summary.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/parse-console.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh index 844787a0d7be..0f1520fb5f81 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-console.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh | |||
@@ -33,7 +33,7 @@ if grep -Pq '\x00' < $file | |||
33 | then | 33 | then |
34 | print_warning Console output contains nul bytes, old qemu still running? | 34 | print_warning Console output contains nul bytes, old qemu still running? |
35 | fi | 35 | fi |
36 | egrep 'Badness|WARNING:|Warn|BUG|===========|Call Trace:|Oops:|detected stalls on CPUs/tasks:|Stall ended before state dump start' < $file | grep -v 'ODEBUG: ' | grep -v 'Warning: unable to open an initial console' > $1.diags | 36 | egrep 'Badness|WARNING:|Warn|BUG|===========|Call Trace:|Oops:|detected stalls on CPUs/tasks:|Stall ended before state dump start|\?\?\? Writer stall state' < $file | grep -v 'ODEBUG: ' | grep -v 'Warning: unable to open an initial console' > $1.diags |
37 | if test -s $1.diags | 37 | if test -s $1.diags |
38 | then | 38 | then |
39 | print_warning Assertion failure in $file $title | 39 | print_warning Assertion failure in $file $title |
@@ -64,7 +64,7 @@ then | |||
64 | then | 64 | then |
65 | summary="$summary lockdep: $n_badness" | 65 | summary="$summary lockdep: $n_badness" |
66 | fi | 66 | fi |
67 | n_stalls=`egrep -c 'detected stalls on CPUs/tasks:|Stall ended before state dump start' $1` | 67 | n_stalls=`egrep -c 'detected stalls on CPUs/tasks:|Stall ended before state dump start|\?\?\? Writer stall state' $1` |
68 | if test "$n_stalls" -ne 0 | 68 | if test "$n_stalls" -ne 0 |
69 | then | 69 | then |
70 | summary="$summary Stalls: $n_stalls" | 70 | summary="$summary Stalls: $n_stalls" |