public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Enabling dwarf unwinder for ppc64
@ 2011-10-07 11:22 Mark Wielaard
  2011-10-13 22:21 ` Mark Wielaard
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Wielaard @ 2011-10-07 11:22 UTC (permalink / raw)
  To: systemtap

Hi,

After a couple of fixes and cleanups to the generic unwinder code I have
finally enabled the dwarf unwinder for ppc64. The final commit (d4bcac)
was actually pretty small. So hopefully this means enabling it for other
arches should not be too much work. In particular it is probably very
close to also work for ppc[32], but I didn't have such a setup. I have
only tested in on a 2.6.32 ppc64 kernel with gcc 4.4.6. If people have
other setups and could test it there that would be highly appreciated.

Also it would be good if someone who actually knows powerpc took a look
at runtime/unwind/ppc64.h to double check it looks somewhat sane. The
debug frame register numbering is somewhat strange (instead of using
dwarf register numbers, it is using gcc internal register numbering...).
I added a comment with a pointer to some discussion about the confusion
this causes. We only track the general integer registers, mq, link and
count. But no floating point, vector, or flag registers. This is mostly
what is available through pt_regs inside the kernel anyway. It seems
this is all we need for kernel unwinding, and I hope it is enough for
user space too, but I haven't studied user space ppc unwind tables too
much yet.

It isn't perfect yet, but good enough to make all context.exp
kernel/cross-module backtrace tests work. For kernel unwinding it seems
good. For user space unwinding there are a couple of issues.
Specifically symbol lookup seems broken. We discussed this some time ago
on this list and this is what I am going to look into next, because that
obscures all other issues (32-on-64 doesn't work and vma-vdso tests
failing).

Cheers,

Mark

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

end of thread, other threads:[~2011-10-21 15:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 11:22 Enabling dwarf unwinder for ppc64 Mark Wielaard
2011-10-13 22:21 ` Mark Wielaard
2011-10-20 14:37   ` Mark Wielaard
2011-10-20 18:51     ` Mark Wielaard
2011-10-21 13:35     ` Mark Wielaard
2011-10-21 13:54       ` Mark Wielaard
2011-10-21 15:02         ` Mark Wielaard

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 read-only IMAP folder(s) and NNTP newsgroup(s).