]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - arch/sparc/include/asm/perf_event.h
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 #define perf_arch_fetch_caller_regs(regs, ip) \
9 unsigned long _pstate, _asi, _pil, _i7, _fp; \
10 __asm__ __volatile__("rdpr %%pstate, %0\n\t" \
12 "rdpr %%pil, %2\n\t" \
20 (regs)->tstate = (_pstate << 8) | \
21 (_asi << 24) | (_pil << 20); \
23 (regs)->tnpc = (regs)->tpc + 4; \
24 (regs)->u_regs[UREG_I6] = _fp; \
25 (regs)->u_regs[UREG_I7] = _i7; \