Skip to content

Commit a711aac

Browse files
committed
torture: Make kvm.sh summaries note runs having only KCSAN reports
Runs having only KCSAN reports will normally print a summary line containing only a "Bugs:" entry. However, these bugs might or might not be KCSAN reports. This commit therefore flags runs in which all the "Bugs:" entries are KCSAN reports. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 21fbc62 commit a711aac

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

tools/testing/selftests/rcutorture/bin/console-badness.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# Authors: Paul E. McKenney <paulmck@kernel.org>
1212

13-
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|!!!' |
13+
egrep 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|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|!!!' |
1414
grep -v 'ODEBUG: ' |
1515
grep -v 'This means that this is a DEBUG kernel and it is' |
1616
grep -v 'Warning: unable to open an initial console' |

tools/testing/selftests/rcutorture/bin/parse-console.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ then
138138
then
139139
summary="$summary Bugs: $n_bugs"
140140
fi
141+
n_kcsan=`egrep -c 'BUG: KCSAN: ' $file`
142+
if test "$n_kcsan" -ne 0
143+
then
144+
if test "$n_bugs" = "$n_kcsan"
145+
then
146+
summary="$summary (all bugs kcsan)"
147+
else
148+
summary="$summary KCSAN: $n_kcsan"
149+
fi
150+
fi
141151
n_calltrace=`grep -c 'Call Trace:' $file`
142152
if test "$n_calltrace" -ne 0
143153
then

0 commit comments

Comments
 (0)