1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * linux/arch/arm/include/asm/perf_event.h 4 * 5 * Copyright (C) 2009 picoChip Designs Ltd, Jamie Iles 6 */ 7 8 #ifndef __ARM_PERF_EVENT_H__ 9 #define __ARM_PERF_EVENT_H__ 10 11 #define perf_arch_fetch_caller_regs(regs, __ip) { \ 12 (regs)->ARM_pc = (__ip); \ 13 frame_pointer((regs)) = (unsigned long) __builtin_frame_address(0); \ 14 (regs)->ARM_sp = current_stack_pointer; \ 15 (regs)->ARM_cpsr = SVC_MODE; \ 16 } 17 18 #endif /* __ARM_PERF_EVENT_H__ */ 19