public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* other platforms interested in in-kernel unwinder?
@ 2004-12-02 17:49 David Mosberger
  2004-12-03  9:37 ` Arnd Bergmann
  0 siblings, 1 reply; 7+ messages in thread
From: David Mosberger @ 2004-12-02 17:49 UTC (permalink / raw)
  To: linux-arch; +Cc: davidm

Soon I'd like to start work on replacing the existing ia64
stack-unwinder with something based on libunwind [1].  I can obviously
do this for ia64 only, but given the per-annual bug reports about
broken backtraces on various platforms, I thought perhaps other arch
maintainers would be interested in having an in-kernel unwinder, too.

libunwind already has a DWARF2 unwinder and works, in addition to
ia64, on x86 and x86-64.  I hope to add PA-RISC and Alpha soon, too.

Given this, it might make sense to add a libunwind-based unwinder not
just for ia64, but other platforms, too.  IIRC, there may be
plans/code for in-kernel unwinder for PPC{,64} already?

The upside of using an in-kernel unwinder would primarily be reliable
stack-traces, at the expense of a somewhat increased kernel-size (for
x86-64, the core of the user-level unwinder adds up to about 60KB of
code (compiled with -O) and about 32KB of data.  Most of the code-size
is due to the actual DWARF2 expression interpreter, so there is
probably not much hope of getting a _really_ tiny DWARF2 unwinder, but
certainly for workstation/server-type machines, it's probably worth
spending <128KB of memory in return for reliable stack traces.

So, how does this sound?  Any interest from say, x86{-64}, PPC, SPARC,
or any other arch maintainer?

Thanks,

	--david

[1] http://www.hpl.hp.com/research/linux/libunwind/

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

end of thread, other threads:[~2004-12-04 21:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-02 17:49 other platforms interested in in-kernel unwinder? David Mosberger
2004-12-03  9:37 ` Arnd Bergmann
2004-12-03 21:09   ` David Mosberger
2004-12-03 22:56     ` Arnd Bergmann
2004-12-03 23:22       ` David Mosberger
2004-12-04  3:59     ` Paul Mackerras
2004-12-04 21:04       ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox