torture: Check for "Call trace:" as well as "Call Trace:"
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 8 May 2025 23:42:28 +0000 (16:42 -0700)
committerJoel Fernandes <joelagnelf@nvidia.com>
Fri, 16 May 2025 15:14:00 +0000 (11:14 -0400)
Different architectures capitalize their splats differently.  Who knew?

This commit therefore checks for both arm64 "Call trace:" and x86
"Call Trace:".

Reported-by: Joel Fernandes <joelagnelf@nvidia.com>
Closes: https://lore.kernel.org/all/553c33d8-2b51-4772-8aef-97b0163bc78e@nvidia.com/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
tools/testing/selftests/rcutorture/bin/console-badness.sh
tools/testing/selftests/rcutorture/bin/parse-console.sh

index aad51e7c0183df85a18b9be766d001305e917b3f..991fb11306eb6fb07bd643c667374b5fc2fd1fac 100755 (executable)
@@ -10,7 +10,7 @@
 #
 # Authors: Paul E. McKenney <paulmck@kernel.org>
 
-grep -E '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|!!!' |
+grep -E 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|Call Trace:|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|!!!' |
 grep -v 'ODEBUG: ' |
 grep -v 'This means that this is a DEBUG kernel and it is' |
 grep -v 'Warning: unable to open an initial console' |
index b07c11cf6929dc307bb5a0519006ef156d743efe..21e6ba3615f6a96efce0e135f7331d7945ca7b0d 100755 (executable)
@@ -148,7 +148,7 @@ then
                        summary="$summary  KCSAN: $n_kcsan"
                fi
        fi
-       n_calltrace=`grep -c 'Call Trace:' $file`
+       n_calltrace=`grep -Ec 'Call Trace:|Call trace:' $file`
        if test "$n_calltrace" -ne 0
        then
                summary="$summary  Call Traces: $n_calltrace"