sparc64: Implement perf_arch_fetch_caller_regs
authorDavid S. Miller <davem@davemloft.net>
Sun, 4 Apr 2010 06:50:59 +0000 (23:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Apr 2010 06:50:59 +0000 (23:50 -0700)
commit954fbc8985328a3b59b5881243d3aa04a8f8da7c
tree8535ec2d841a3213661f8362ebb358bf34575346
parent3f6c148df42d98f0991baf4353497d380a30bc19
sparc64: Implement perf_arch_fetch_caller_regs

We provide regs->tstate, regs->tpc, regs->tnpc and
regs->u_regs[UREG_FP].

regs->tstate is necessary for:

user_mode() (via perf_exclude_event())

perf_misc_flags() (via perf_prepare_sample())

regs->tpc is necessary for:

perf_instruction_pointer() (via perf_prepare_sample())

and regs->u_regs[UREG_FP] is necessary for:

perf_callchain() (via perf_prepare_sample())

The regs->tnpc value is provided just to be tidy.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/helpers.S