From: Andrew Cagney <cagney@redhat.com>
To: Mark Wielaard <mark@klomp.org>
Cc: Sami Wagiaalla <swagiaal@redhat.com>, frysk@sourceware.org
Subject: Re: fstack options
Date: Fri, 15 Jun 2007 14:07:00 -0000 [thread overview]
Message-ID: <46729C4A.2020108@redhat.com> (raw)
In-Reply-To: <1181898346.4482.32.camel@dijkstra.wildebeest.org>
Mark,
A two stage pass might work for an elf based backtrace as only the code
addresses and address map need to be saved. However, for a more
detailed backtrace, involving variable values et.al. the debug info
needs to be scanned during the first pass to determine what to save for
that second pass.
Andrew
Mark Wielaard wrote:
> On Thu, 2007-06-14 at 13:51 -0400, Andrew Cagney wrote:
>
>> fstack's, and its pre-cursors - gstack and pstack, first priority is
>> speed - get in, get a backtrace, get out - and I think it is fair to
>> assume that having to scan multi-megabytes of .debug info would run
>> against that goal (fstack probably shouldn't look in .debug_line by
>> default either).
>>
>> Perhaps an option << fstack -a >> to reverse the goal and display
>> everything known about the function would address this.
>>
>
> So would a 2 stage approach be an idea. fstack just gets the addresses
> on the stack, writes them out (or buffers them) and gets out. Then the
> result gets pushed through addr2line (or a frysk based alternative if
> you want) that pieces together the actual source lines from the
> addresses and the exe associated with the pid?
>
> Cheers,
>
> Mark
>
prev parent reply other threads:[~2007-06-15 14:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 20:27 Sami Wagiaalla
2007-06-12 21:56 ` Sami Wagiaalla
2007-06-14 19:06 ` Andrew Cagney
2007-06-15 9:44 ` Mark Wielaard
2007-06-15 14:07 ` Andrew Cagney [this message]
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=46729C4A.2020108@redhat.com \
--to=cagney@redhat.com \
--cc=frysk@sourceware.org \
--cc=mark@klomp.org \
--cc=swagiaal@redhat.com \
/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).