public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: Roland McGrath <roland@redhat.com>
Cc: Prerna Saxena <prerna@linux.vnet.ibm.com>, systemtap@sourceware.org
Subject: Re: [Query] Re: dwarf unwinder (only works on i386/x86_64)
Date: Tue, 28 Apr 2009 19:52:00 -0000	[thread overview]
Message-ID: <1240948283.3822.13.camel@hermans.wildebeest.org> (raw)
In-Reply-To: <20090428181720.4CBECFC3C6@magilla.sf.frob.com>

Hi,

Roland already answered most of the questions. Some time ago I wrote
some high level overview of all the moving pieces related to unwinding.
Maybe someone finds that useful:
A while ago I tried to summarize some of these issues:
http://gnu.wildebeest.org/diary/2007/08/23/stack-unwinding/

On Tue, 2009-04-28 at 11:17 -0700, Roland McGrath wrote:
> > ii. This section seemingly appears to be a better bet than DWARF to base 
> > the unwinder on--- because a ".debug_frame" based unwinder might not be 
> > useful in case of a kernel complied without debuginfo.
> 
> It is a somewhat hairy subject.  But in short, this is not so in current
> kernels.  That is not entirely apropos, because it's only the situation for
> the kernel, and there are also user binaries to consider.  There it is an
> even more complex subject.  The overall answer is that the answer is complex,
> but potentially both sections are involved.

The original choice for using debug_frame was because it was always
available (since we required debuginfo already) and it was complete. GCC
4.4 changed this though (and the uprobes_ustack.exp test does indeed
fail when build with gcc 4.4). With that version .debug_frame is no
longer complete, if unwind data is emitted into .eh_frame, it is not
emitted into .debug_frame (so no duplication) and only when .eh_frame is
not emitted, .debug_frame is emitted. So we have to start doing
something more clever. Defaulting to .eh_frame (at least for user space)
might be a good idea, and maybe then combining the two tables (and maybe
creating our own search table).

.eh_frame and .debug_frame are encoded slightly differently, but
supporting both is not hard.

Cheers,

Mark

  reply	other threads:[~2009-04-28 19:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17 14:06 Mark Wielaard
2009-04-21 20:58 ` dwarf unwinder (only works on i386/x86_64) - now with user space unwinding Mark Wielaard
2009-05-21  8:03   ` dwarf unwinder (only works on i386/x86_64) - now with eh_frame and debug_frame fallback Mark Wielaard
2009-05-21 18:44     ` Roland McGrath
2009-05-21 22:57       ` Mark Wielaard
2009-05-22  1:19         ` Roland McGrath
2009-04-28 18:02 ` [Query] Re: dwarf unwinder (only works on i386/x86_64) Prerna Saxena
2009-04-28 18:19   ` Roland McGrath
2009-04-28 19:52     ` Mark Wielaard [this message]
2009-04-28 20:15       ` Roland McGrath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1240948283.3822.13.camel@hermans.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=prerna@linux.vnet.ibm.com \
    --cc=roland@redhat.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).