From: acme@kernel.org (Arnaldo Carvalho de Melo)
To: linux-arm-kernel@lists.infradead.org
Subject: perf not capturing stack traces
Date: Mon, 26 Jan 2015 11:33:29 -0300 [thread overview]
Message-ID: <20150126143329.GA5906@kernel.org> (raw)
In-Reply-To: <20150126135406.GD11502@n2100.arm.linux.org.uk>
Em Mon, Jan 26, 2015 at 01:54:06PM +0000, Russell King - ARM Linux escreveu:
> On Mon, Jan 26, 2015 at 09:12:43AM -0300, Arnaldo Carvalho de Melo wrote:
> > Em Mon, Jan 26, 2015 at 10:27:11AM +0000, Will Deacon escreveu:
> > > FWIW, perf can now use libunwind for unwinding the userspace side of
> > > things, so it's not quite as bad as it used to be. For the kernel side,
> > > if the unwinder isn't working properly it would be nice to know *why*,
> > > but I agree that it tends to be far flakier than the frame-pointer method.
> > Any idea why, with userspace using frame pointers, perf doesn't go all
> > the way from kernel to userspace main() (or whatever is the endpoint),
> > as Russel stated?
> ^ *growl*
I misunderstood, as corrected on another message, sorry.
> I've rebuilt userspace code which I've been working on in with a bunch of
> flags which makes it use frame pointers in ARM mode, and perf does seem
> to be capable of that; in that case, perf_callchain_user() can walk the
> linked set of frames.
>
> However, if glibc is built for thumb2 or doesn't contain frame pointers,
> userspace tracing pretty much stops after you hit the first function in
> userspace.
Right.
- Arnaldo
next prev parent reply other threads:[~2015-01-26 14:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 19:51 perf not capturing stack traces Felipe Balbi
2015-01-23 19:53 ` Felipe Balbi
2015-01-23 20:59 ` Arnaldo Carvalho de Melo
2015-01-23 22:37 ` Felipe Balbi
2015-01-24 15:12 ` Arnaldo Carvalho de Melo
2015-01-24 22:23 ` Felipe Balbi
2015-01-25 15:56 ` Russell King - ARM Linux
2015-01-26 10:27 ` Will Deacon
2015-01-26 12:12 ` Arnaldo Carvalho de Melo
2015-01-26 12:16 ` Will Deacon
2015-01-26 12:29 ` Arnaldo Carvalho de Melo
2015-01-26 13:54 ` Russell King - ARM Linux
2015-01-26 14:33 ` Arnaldo Carvalho de Melo [this message]
2015-01-26 13:51 ` Russell King - ARM Linux
2015-01-26 14:37 ` Arnaldo Carvalho de Melo
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=20150126143329.GA5906@kernel.org \
--to=acme@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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 NNTP newsgroup(s).