diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-04-21 15:03:06 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-06-14 19:02:17 -0400 |
commit | 682ed706c5bb1526b001bc69aa4ee1e8b456bfa6 (patch) | |
tree | 0c0f30452ea8c009c0a9dca5be2d332e04cbcd8d | |
parent | d95f5ba90fa6043a366958897fdef705af968b70 (diff) |
torture: Add starvation events to error summary
This commit adds a string of the form "Starves: 10" to the summary
line for error conditions found in the console output.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/parse-console.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh index 5eb49b7f864c..08aa7d50ae0e 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:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state' < $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:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state|rcu_.*kthread starved for' < $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 |
@@ -69,6 +69,11 @@ then | |||
69 | then | 69 | then |
70 | summary="$summary Stalls: $n_stalls" | 70 | summary="$summary Stalls: $n_stalls" |
71 | fi | 71 | fi |
72 | n_starves=`grep -c 'rcu_.*kthread starved for' $1` | ||
73 | if test "$n_starves" -ne 0 | ||
74 | then | ||
75 | summary="$summary Starves: $n_starves" | ||
76 | fi | ||
72 | print_warning Summary: $summary | 77 | print_warning Summary: $summary |
73 | else | 78 | else |
74 | rm $1.diags | 79 | rm $1.diags |