.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/include/asm/perf_event.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2009 picoChip Designs Ltd, Jamie Iles |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #ifndef __ARM_PERF_EVENT_H__ |
---|
.. | .. |
---|
21 | 17 | |
---|
22 | 18 | #define perf_arch_fetch_caller_regs(regs, __ip) { \ |
---|
23 | 19 | (regs)->ARM_pc = (__ip); \ |
---|
24 | | - (regs)->ARM_fp = (unsigned long) __builtin_frame_address(0); \ |
---|
| 20 | + frame_pointer((regs)) = (unsigned long) __builtin_frame_address(0); \ |
---|
25 | 21 | (regs)->ARM_sp = current_stack_pointer; \ |
---|
26 | 22 | (regs)->ARM_cpsr = SVC_MODE; \ |
---|
27 | 23 | } |
---|