[PATCH v2] perf_counter: powerpc: Add callchain support

2009-08-05 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

Re: [PATCH v2] perf_counter: powerpc: Add callchain support

2009-08-11 Thread Benjamin Herrenschmidt
On Thu, 2009-08-06 at 14:58 +1000, Paul Mackerras wrote: > + > +#else /* CONFIG_PPC64 */ > +/* > + * On 32-bit we just access the address and let hash_page create a > + * HPTE if necessary, so there is no need to fall back to reading > + * the page tables. Since this is called at interrupt level