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 <joelagn...@nvidia.com>
Closes: 
https://lore.kernel.org/all/553c33d8-2b51-4772-8aef-97b0163bc...@nvidia.com/
Signed-off-by: Paul E. McKenney <paul...@kernel.org>
---
 tools/testing/selftests/rcutorture/bin/console-badness.sh | 2 +-
 tools/testing/selftests/rcutorture/bin/parse-console.sh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/rcutorture/bin/console-badness.sh 
b/tools/testing/selftests/rcutorture/bin/console-badness.sh
index aad51e7c0183d..991fb11306eb6 100755
--- a/tools/testing/selftests/rcutorture/bin/console-badness.sh
+++ b/tools/testing/selftests/rcutorture/bin/console-badness.sh
@@ -10,7 +10,7 @@
 #
 # Authors: Paul E. McKenney <paul...@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' |
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh 
b/tools/testing/selftests/rcutorture/bin/parse-console.sh
index b07c11cf6929d..21e6ba3615f6a 100755
--- a/tools/testing/selftests/rcutorture/bin/parse-console.sh
+++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh
@@ -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"
-- 
2.40.1


Reply via email to