Re: [PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-21 Thread Will Deacon
On Sat, Jul 20, 2013 at 04:43:21AM +0100, Jed Davis wrote: > On Mon, Jul 15, 2013 at 02:53:42PM +0100, Will Deacon wrote: > > > + "mov %[_pc], r15\n\t" \ > > > + "mrs %[_cpsr], cpsr\n\t" \ > > > +

Re: [PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-21 Thread Will Deacon
On Sat, Jul 20, 2013 at 04:43:21AM +0100, Jed Davis wrote: On Mon, Jul 15, 2013 at 02:53:42PM +0100, Will Deacon wrote: + mov %[_pc], r15\n\t \ + mrs %[_cpsr], cpsr\n\t \ + :

Re: [PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-19 Thread Jed Davis
On Mon, Jul 15, 2013 at 02:53:42PM +0100, Will Deacon wrote: > On Sat, Jul 13, 2013 at 04:17:14AM +0100, Jed Davis wrote: [...] > > +#ifdef CONFIG_THUMB2_KERNEL > > +#define perf_arch_fetch_caller_regs(regs, ip) > > \ > > + do {

Re: [PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-19 Thread Jed Davis
On Mon, Jul 15, 2013 at 02:53:42PM +0100, Will Deacon wrote: On Sat, Jul 13, 2013 at 04:17:14AM +0100, Jed Davis wrote: [...] +#ifdef CONFIG_THUMB2_KERNEL +#define perf_arch_fetch_caller_regs(regs, ip) \ + do {

Re: [PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-15 Thread Will Deacon
Hi Jed, On Sat, Jul 13, 2013 at 04:17:14AM +0100, Jed Davis wrote: > We need a perf_arch_fetch_caller_regs for at least some software events > to be able to get a callchain; even user stacks won't work without > at least the CPSR bits for non-user-mode (see perf_callchain). In > particular,

Re: [PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-15 Thread Will Deacon
Hi Jed, On Sat, Jul 13, 2013 at 04:17:14AM +0100, Jed Davis wrote: We need a perf_arch_fetch_caller_regs for at least some software events to be able to get a callchain; even user stacks won't work without at least the CPSR bits for non-user-mode (see perf_callchain). In particular,

[PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-12 Thread Jed Davis
We need a perf_arch_fetch_caller_regs for at least some software events to be able to get a callchain; even user stacks won't work without at least the CPSR bits for non-user-mode (see perf_callchain). In particular, profiling context switches needs this. This records the state of the point at

[PATCH] ARM: perf: Implement perf_arch_fetch_caller_regs

2013-07-12 Thread Jed Davis
We need a perf_arch_fetch_caller_regs for at least some software events to be able to get a callchain; even user stacks won't work without at least the CPSR bits for non-user-mode (see perf_callchain). In particular, profiling context switches needs this. This records the state of the point at