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>
This commit is contained in:
parent
d95f5ba90f
commit
682ed706c5
@ -33,7 +33,7 @@ if grep -Pq '\x00' < $file
|
|||||||
then
|
then
|
||||||
print_warning Console output contains nul bytes, old qemu still running?
|
print_warning Console output contains nul bytes, old qemu still running?
|
||||||
fi
|
fi
|
||||||
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
|
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
|
||||||
if test -s $1.diags
|
if test -s $1.diags
|
||||||
then
|
then
|
||||||
print_warning Assertion failure in $file $title
|
print_warning Assertion failure in $file $title
|
||||||
@ -69,6 +69,11 @@ then
|
|||||||
then
|
then
|
||||||
summary="$summary Stalls: $n_stalls"
|
summary="$summary Stalls: $n_stalls"
|
||||||
fi
|
fi
|
||||||
|
n_starves=`grep -c 'rcu_.*kthread starved for' $1`
|
||||||
|
if test "$n_starves" -ne 0
|
||||||
|
then
|
||||||
|
summary="$summary Starves: $n_starves"
|
||||||
|
fi
|
||||||
print_warning Summary: $summary
|
print_warning Summary: $summary
|
||||||
else
|
else
|
||||||
rm $1.diags
|
rm $1.diags
|
||||||
|
Loading…
Reference in New Issue
Block a user