1 #ifndef __ASM_SPARC_PERF_EVENT_H
2 #define __ASM_SPARC_PERF_EVENT_H
4 #ifdef CONFIG_PERF_EVENTS
5 #include <asm/ptrace.h>
7 extern void init_hw_perf_events(void);
9 #define perf_arch_fetch_caller_regs(regs, ip) \
11 unsigned long _pstate, _asi, _pil, _i7, _fp; \
12 __asm__ __volatile__("rdpr %%pstate, %0\n\t" \
14 "rdpr %%pil, %2\n\t" \
22 (regs)->tstate = (_pstate << 8) | \
23 (_asi << 24) | (_pil << 20); \
25 (regs)->tnpc = (regs)->tpc + 4; \
26 (regs)->u_regs[UREG_I6] = _fp; \
27 (regs)->u_regs[UREG_I7] = _i7; \
30 static inline void init_hw_perf_events(void) { }