Re: [PATCH 2/2] perf_counter: powerpc: Add callchain support

2009-06-27 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Sat, 2009-06-27 at 15:31 +1000, Paul Mackerras wrote: > > + if (regs) { > > + if (current_is_64bit()) > > + perf_callchain_user_64(regs, entry); > > + else > > + perf_callchain_user_32(regs

Re: [PATCH 2/2] perf_counter: powerpc: Add callchain support

2009-06-27 Thread Peter Zijlstra
On Sat, 2009-06-27 at 15:31 +1000, Paul Mackerras wrote: > + if (regs) { > + if (current_is_64bit()) > + perf_callchain_user_64(regs, entry); > + else > + perf_callchain_user_32(regs, entry); > + } Ingo do we need

[PATCH 2/2] perf_counter: powerpc: Add callchain support

2009-06-26 Thread Paul Mackerras
This adds support for tracing callchains for powerpc, both 32-bit and 64-bit, and both in the kernel and userspace, from PMU interrupt context. The first three entries stored for each callchain are the NIP (next instruction pointer), LR (link register), and the contents of the LR save area in the