All of lore.kernel.org
 help / color / mirror / Atom feed
* What helps with stacks?
@ 2015-04-21 19:54 Daniel Speyer
  2015-04-21 20:06 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Speyer @ 2015-04-21 19:54 UTC (permalink / raw)
  To: linux-perf-users

Hello all,

I'm trying to get stack traces for a bunch of events using perf record and
having trouble with them getting cut off.  I'm using --callgraph dwarf,
which helps a little, and I recompiled libc with --fno-omit-frame-pointer,
which doesn't seem to have helped at all.  Very often, the bottom of the
stack is in libc, often __epoll_wait_nocancel.  Stacks for
sched:sched_switch events seem to be worse than cycles or sched:sched_wakeup
events, but it isn't 100%.  Is there anything else I could try?

Thanks,
--Daniel Speyer

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

* Re: What helps with stacks?
  2015-04-21 19:54 What helps with stacks? Daniel Speyer
@ 2015-04-21 20:06 ` Andi Kleen
  2015-04-25 18:42   ` Daniel Speyer
  0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2015-04-21 20:06 UTC (permalink / raw)
  To: Daniel Speyer; +Cc: linux-perf-users

Daniel Speyer <dspeyer@gmail.com> writes:

> Hello all,
>
> I'm trying to get stack traces for a bunch of events using perf record and
> having trouble with them getting cut off.  I'm using --callgraph dwarf,
> which helps a little, and I recompiled libc with --fno-omit-frame-pointer,
> which doesn't seem to have helped at all.  Very often, the bottom of the
> stack is in libc, often __epoll_wait_nocancel.  Stacks for
> sched:sched_switch events seem to be worse than cycles or sched:sched_wakeup
> events, but it isn't 100%.  Is there anything else I could try?


If you have a Haswell/Broadwell system and uptodate perf (4.0) you can also
use --call-graph lbr

This uses a new hardware mechanism that can handle many situations
where the old ones failed (but also has some situations where
it has to give up)

-andi


-- 
ak@linux.intel.com -- Speaking for myself only

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

* Re: What helps with stacks?
  2015-04-21 20:06 ` Andi Kleen
@ 2015-04-25 18:42   ` Daniel Speyer
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Speyer @ 2015-04-25 18:42 UTC (permalink / raw)
  To: linux-perf-users

Andi Kleen <andi <at> firstfloor.org> writes:
> If you have a Haswell/Broadwell system and uptodate perf (4.0) you can also
> use --call-graph lbr
> 
> This uses a new hardware mechanism that can handle many situations
> where the old ones failed (but also has some situations where
> it has to give up)
> 
> -andi
> 

We've gotten access to a Haswell system.  How do we get perf with LBR
support?  It looks like it hasn't been merged into the main line kernel. 
Are there binaries anywhere?  Do we need to upgrade the entire kernel, or
just the perf utility?

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

end of thread, other threads:[~2015-04-25 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 19:54 What helps with stacks? Daniel Speyer
2015-04-21 20:06 ` Andi Kleen
2015-04-25 18:42   ` Daniel Speyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.