linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf_arch_fetch_caller_regs...
@ 2010-03-19  4:02 David Miller
  2010-03-19  4:24 ` perf_arch_fetch_caller_regs Frederic Weisbecker
  2010-03-19  4:32 ` perf_arch_fetch_caller_regs Paul Mackerras
  0 siblings, 2 replies; 5+ messages in thread
From: David Miller @ 2010-03-19  4:02 UTC (permalink / raw)
  To: fweisbec; +Cc: mingo, paulus, linux-arch


Can we please remove the CALLER_ADDR0 et al. evaluations at the top
level in perf_fetch_caller_regs()?

I take great pains to avoid having to flush the register windows on
sparc64 even when fetching callchains et al and any
__builtin_return_address() with an argument greater than zero is going
to force a register window flush to get emitted by gcc undoing all of
my hard work :-)

You guys can put it into the x86 perf_fetch_caller_regs() or similar.

If you need it to be evaluated at the call site, make the inline
overridable by the platform headers.

I noticed that the powerpc assembler Paul posted the past few days
ignores this "ip" arg passed down and computes it by hand as it
walks up the stack chain in assembler.  PowerPC therefore might be
getting similar inefficiences due to this CALLER_ADDR? stuff.

Thanks.

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

end of thread, other threads:[~2010-03-19  4:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19  4:02 perf_arch_fetch_caller_regs David Miller
2010-03-19  4:24 ` perf_arch_fetch_caller_regs Frederic Weisbecker
2010-03-19  4:47   ` perf_arch_fetch_caller_regs David Miller
2010-03-19  4:32 ` perf_arch_fetch_caller_regs Paul Mackerras
2010-03-19  4:51   ` perf_arch_fetch_caller_regs David Miller

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).