* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
@ 2015-02-05 17:30 Donald Dutile
2015-02-05 17:37 ` Russell King - ARM Linux
2015-02-06 15:34 ` Catalin Marinas
0 siblings, 2 replies; 7+ messages in thread
From: Donald Dutile @ 2015-02-05 17:30 UTC (permalink / raw)
To: linux-arm-kernel
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.
Signed-off-by: Donald Dutile <ddutile@redhat.com>
---
arch/arm64/kernel/traps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index 0a801e3..832e721 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -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;
--
1.7.10.2.552.gaa3bb87
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
2015-02-05 17:30 [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners Donald Dutile
@ 2015-02-05 17:37 ` Russell King - ARM Linux
2015-02-05 18:18 ` Don Dutile
2015-02-06 15:34 ` Catalin Marinas
1 sibling, 1 reply; 7+ messages in thread
From: Russell King - ARM Linux @ 2015-02-05 17:37 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 05, 2015 at 12:30:27PM -0500, Donald Dutile wrote:
> 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.)
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
2015-02-05 17:37 ` Russell King - ARM Linux
@ 2015-02-05 18:18 ` Don Dutile
2015-02-05 18:30 ` Russell King - ARM Linux
0 siblings, 1 reply; 7+ messages in thread
From: Don Dutile @ 2015-02-05 18:18 UTC (permalink / raw)
To: linux-arm-kernel
On 02/05/2015 12:37 PM, Russell King - ARM Linux wrote:
> On Thu, Feb 05, 2015 at 12:30:27PM -0500, Donald Dutile wrote:
>> 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.)
>
So you're saying:
(a) you want 'Backtrace' added to parse-console.sh
(b) 'not happy to change that' .. where 'that' == ?
-dd
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
2015-02-05 18:18 ` Don Dutile
@ 2015-02-05 18:30 ` Russell King - ARM Linux
2015-02-05 18:46 ` Don Dutile
0 siblings, 1 reply; 7+ messages in thread
From: Russell King - ARM Linux @ 2015-02-05 18:30 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 05, 2015 at 01:18:13PM -0500, Don Dutile wrote:
> On 02/05/2015 12:37 PM, Russell King - ARM Linux wrote:
> >On Thu, Feb 05, 2015 at 12:30:27PM -0500, Donald Dutile wrote:
> >>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.)
> >
> So you're saying:
> (a) you want 'Backtrace' added to parse-console.sh
Correct
> (b) 'not happy to change that' .. where 'that' == ?
that = "Backtrace" in the ARM code.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
2015-02-05 18:30 ` Russell King - ARM Linux
@ 2015-02-05 18:46 ` Don Dutile
0 siblings, 0 replies; 7+ messages in thread
From: Don Dutile @ 2015-02-05 18:46 UTC (permalink / raw)
To: linux-arm-kernel
On 02/05/2015 01:30 PM, Russell King - ARM Linux wrote:
> On Thu, Feb 05, 2015 at 01:18:13PM -0500, Don Dutile wrote:
>> On 02/05/2015 12:37 PM, Russell King - ARM Linux wrote:
>>> On Thu, Feb 05, 2015 at 12:30:27PM -0500, Donald Dutile wrote:
>>>> 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.)
>>>
>> So you're saying:
>> (a) you want 'Backtrace' added to parse-console.sh
>
> Correct
>
>> (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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
2015-02-05 17:30 [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners Donald Dutile
2015-02-05 17:37 ` Russell King - ARM Linux
@ 2015-02-06 15:34 ` Catalin Marinas
2015-02-06 18:43 ` Don Dutile
1 sibling, 1 reply; 7+ messages in thread
From: Catalin Marinas @ 2015-02-06 15:34 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 05, 2015 at 05:30:27PM +0000, Donald Dutile wrote:
> 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.
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.
--
Catalin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners
2015-02-06 15:34 ` Catalin Marinas
@ 2015-02-06 18:43 ` Don Dutile
0 siblings, 0 replies; 7+ messages in thread
From: Don Dutile @ 2015-02-06 18:43 UTC (permalink / raw)
To: linux-arm-kernel
On 02/06/2015 10:34 AM, Catalin Marinas wrote:
> On Thu, Feb 05, 2015 at 05:30:27PM +0000, Donald Dutile wrote:
>> 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.
>
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-02-06 18:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 17:30 [PATCH] arm64: Change 'Call trace' to 'Call Trace' for tool scanners Donald Dutile
2015-02-05 17:37 ` Russell King - ARM Linux
2015-02-05 18:18 ` Don Dutile
2015-02-05 18:30 ` Russell King - ARM Linux
2015-02-05 18:46 ` Don Dutile
2015-02-06 15:34 ` Catalin Marinas
2015-02-06 18:43 ` Don Dutile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).