Skip to contentSkip to conversation

arm64: Change 'Call trace' to 'Call Trace' for tool scanners

PATCH New Donald Dutile 3 participants 7 messages Feb 5, 2015 – Feb 6, 2015 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

Expecting there aren't a significant number of arm64 dump scanners matching on 'Call trace' so recommend making this change now to minimize changes to dump scanning tools for arm64 servers.

---
 arch/arm64/kernel/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/traps.c +1 -1
index 0a801e3..832e721 100644
@@ -155,7 +155,7 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
 		frame.pc = thread_saved_pc(tsk);
 	}
 
-	pr_emerg("Call trace:\n");
+	pr_emerg("Call Trace:\n");
 	while (1) {
 		unsigned long where = frame.pc;
 		int ret;
Signature · 1 line
1.7.10.2.552.gaa3bb87
#1 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

Quoted 9 lines · Donald Dutile

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

That script should also be changed to accept "Backtrace" which we've had for eons on ARM. I would not be happy to change that given that ARM has used "Backtrace" there for a very long time now (not far off 20 years.)

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
author
#2 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

Quoted 11 lines · Russell King - ARM Linux
Quoted 9 lines · Donald Dutile

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

Quoted 4 lines

That script should also be changed to accept "Backtrace" which we've had for eons on ARM. I would not be happy to change that given that ARM has used "Backtrace" there for a very long time now (not far off 20 years.)

So you're saying:
(a) you want 'Backtrace' added to parse-console.sh
(b) 'not happy to change that' .. where 'that' == ? -dd

#3 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

Quoted 12 lines · Don Dutile
Quoted 11 lines · Russell King - ARM Linux
Quoted 9 lines · Donald Dutile

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

Quoted 6 lines
Quoted 4 lines

That script should also be changed to accept "Backtrace" which we've had for eons on ARM. I would not be happy to change that given that ARM has used "Backtrace" there for a very long time now (not far off 20 years.)

So you're saying:
(a) you want 'Backtrace' added to parse-console.sh

Correct

Quoted 1 line

(b) 'not happy to change that' .. where 'that' == ?

that = "Backtrace" in the ARM code.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
author
#4 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

Quoted 17 lines · Russell King - ARM Linux
Quoted 16 lines · Don Dutile
Quoted 15 lines · Russell King - ARM Linux
Quoted 9 lines · Donald Dutile

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

That script should also be changed to accept "Backtrace" which we've had for eons on ARM. I would not be happy to change that given that ARM has used "Backtrace" there for a very long time now (not far off 20 years.)

Quoted 9 lines
Quoted 2 lines

So you're saying:
(a) you want 'Backtrace' added to parse-console.sh

Correct

Quoted 1 line

(b) 'not happy to change that' .. where 'that' == ?

that = "Backtrace" in the ARM code.

Thanks for clarification.
I found the use of 'Backtrace' in parisc, unicore32, tile & arm.

This patch isn't trying to resolve it for arm (or other) arch(es), just arm64.

As I stated, I was trying to get the change done before
arm64 systems are (much more) common, and dump tools used for
other arches that scan for 'Call Trace' start to be exercised commonly on arm64.

So, if arm(32) has a similar need, it can be done via another patch (set).

- dd

maintainer
#5 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

In reply to Donald Dutile
Quoted 10 lines · Donald Dutile

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

Quoted 3 lines

Expecting there aren't a significant number of arm64 dump scanners matching on 'Call trace' so recommend making this change now to minimize changes to dump scanning tools for arm64 servers.

Can you not fix the scripts to check for "Call trace" as well? There are 4 more architectures in the kernel using this string (avr32, c6x, metag, sh). I also wouldn't count kernel logs as user ABI.

Signature · 1 line
Catalin
author
#6 lore raw

PATCH 1/1 arm64: Change 'Call trace' to 'Call Trace' for tool scanners

Quoted 11 lines · Catalin Marinas
Quoted 10 lines · Donald Dutile

Receiving reports from service folks that arm64 uses 'Call trace' when dumping stack, instead of the more familiar 'Call Trace'; the former is not being seen by tools that scan for the latter text. Checking various arches,
it appears the mainstream server arches (ia64, mips, ppc, s390, sparc, x86) use 'Call Trace'.
This kernel tools script scans for the latter text string as well
tools/testing/selftests/rcutorture/bin/parse-console.sh
so it doesn't appear to be arch or vendor specific.

Quoted 8 lines
Quoted 3 lines

Expecting there aren't a significant number of arm64 dump scanners matching on 'Call trace' so recommend making this change now to minimize changes to dump scanning tools for arm64 servers.

Can you not fix the scripts to check for "Call trace" as well? There are 4 more architectures in the kernel using this string (avr32, c6x, metag, sh). I also wouldn't count kernel logs as user ABI.

I could, but I first received this report from other tools used within RH
that scan for 'Call Trace'. I pointed to parse-console.sh to show
that RH tools weren't the only ones that were wired with that expectation.

So, adding 'Call trace' to parse-console.sh won't resolve all the other (primarily server crash) tools that currently match on 'Call Trace'.

I agree with you that I don't consider kernel logs as user ABI, but as I said, the majority of the heavy, server arches have it that way, and the tools used on those servers have leaned on this expectation to date.

I didn't modify the other arch's b/c they aren't heavy server arches.

We could carry a patch in our downstream, but then the tools don't resolve the same way when we do upstream<->downstream comparisons which typically occur with knarly crash scenarios, which this string would likely show up in.

Cheers, Don