linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] compact call trace
@ 2006-01-17 10:13 Akinobu Mita
  2006-01-17 10:14 ` [PATCH 1/4] makes print_symbol() return int Akinobu Mita
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Akinobu Mita @ 2006-01-17 10:13 UTC (permalink / raw)
  To: ak, linux-kernel
  Cc: Chuck Ebbert, Christoph Hellwig, Jesper Juhl, Arjan van de Ven

These patches will:

- break the various custom oops-parsers which people have written themselves.
- use common call trace format on x86-64.
- change offset format from hexadecimal to decimal in print_symbol()
- delete symbolsize in call trace in print_symbol().
- print system_utsname.version in oops so that we can doing a
  double check that the oops is matching the vmlinux we're looking at.

Example output:

o Currently we get the following call trace
i386: [<f0ad4c51>] kjournald+0x18c/0x207 [jbd]
x86-64: <ffffffffa008ef6c>{:jbd:kjournald+1030}

o After applied these patches.
i386: [<f0ad4c51>] kjournald+396 [jbd]
x86-64: <ffffffffa008ef6c> kjournald+1030 [jbd]


^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] compact print_symbol() output
@ 2006-01-18  3:05 Chuck Ebbert
  2006-01-18  3:15 ` Keith Owens
  2006-01-18  3:25 ` Valdis.Kletnieks
  0 siblings, 2 replies; 18+ messages in thread
From: Chuck Ebbert @ 2006-01-18  3:05 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Arjan van de Ven, Jesper Juhl, Christoph Hellwig, linux-kernel,
	Keith Owens, Akinobu Mita, Hugh Dickins

In-Reply-To: <200601171601.52995.ak@suse.de>

On Tue, 17 Jan 2006 at 16:01:52 +0100, Andi Kleen wrote:

> On Tuesday 17 January 2006 16:01, Hugh Dickins wrote:
> 
> > I've often found symbolsize useful.  Not when looking at an oops
> > from my own machine.  But when looking at an oops posted on LKML,
> > from someone who most likely has a different .config and different
> > compiler, different optimization and different inlining from mine.
> > symbolsize is a good clue as to how close their kernel is to the
> > one I've got built on my machine, how likely guesses I make based
> > on mine will apply to theirs, and whereabouts in the function that
> > it oopsed.
> 
> Yes that is why I want it too.

OK, how about this: remove the "0x" from the function size, i.e. print:

        kernel_symbol+0xd3/10e

instead of:

        kernel_symbol+0xd3/0x10e

This saves two characters per symbol and it should still be clear that
the second number is hexadecimal.

Does that break any tools?
-- 
Chuck

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] compact print_symbol() output
@ 2006-01-18  6:08 Chuck Ebbert
  0 siblings, 0 replies; 18+ messages in thread
From: Chuck Ebbert @ 2006-01-18  6:08 UTC (permalink / raw)
  To: Valdis.Kletnieks
  Cc: Hugh Dickins, Akinobu Mita, Keith Owens, linux-kernel,
	Christoph Hellwig, Jesper Juhl, Arjan van de Ven, Andi Kleen

In-Reply-To: <200601180325.k0I3P8tF008591@turing-police.cc.vt.edu>

On Tue, 17 Jan 2006 at 22:25:07 -0500, Valdis.Kletnieks wrote:

> On Tue, 17 Jan 2006 22:05:27 EST, Chuck Ebbert said:
> 
> > OK, how about this: remove the "0x" from the function size, i.e. print:
> > 
> >         kernel_symbol+0xd3/10e
> > 
> > instead of:
> > 
> >         kernel_symbol+0xd3/0x10e
> > 
> > This saves two characters per symbol and it should still be clear that
> > the second number is hexadecimal.
>
> Good.  Now repeat for a function that's 6 bytes shorter.

OK, I probably should have done that:

        kernel_symbol+0xd3/108

My point is that if the "numerator" is hex you should assume the
"denominator" is too.
-- 
Chuck
Currently reading: _Einstein's Bridge_ by John Cramer

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2006-01-18  6:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-17 10:13 [PATCH 0/4] compact call trace Akinobu Mita
2006-01-17 10:14 ` [PATCH 1/4] makes print_symbol() return int Akinobu Mita
2006-01-17 10:15 ` [PATCH 2/4] x86-64: Use print_symbol() to dump call trace Akinobu Mita
2006-01-17 10:15 ` [PATCH 3/4] compact print_symbol() output Akinobu Mita
2006-01-17 10:34   ` Keith Owens
2006-01-17 10:52     ` Jesper Juhl
2006-01-17 10:58       ` Akinobu Mita
2006-01-17 11:01         ` Keith Owens
2006-01-17 11:23     ` Akinobu Mita
2006-01-17 15:01       ` Hugh Dickins
2006-01-17 15:01         ` Andi Kleen
2006-01-17 10:16 ` [PATCH 4/4] i386: print system_utsname.version in oops Akinobu Mita
2006-01-17 10:31 ` [PATCH 0/4] compact call trace Arjan van de Ven
2006-01-17 10:42   ` Keith Owens
2006-01-18  3:05 [PATCH 3/4] compact print_symbol() output Chuck Ebbert
2006-01-18  3:15 ` Keith Owens
2006-01-18  3:25 ` Valdis.Kletnieks
2006-01-18  6:08 Chuck Ebbert

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).