mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00

For ARM's implementation, perf_instruction_pointer() and perf_misc_flags() are equivalent to the generic versions in include/linux/perf_event.h so arch/arm doesn't need to provide its own versions. Drop them here. Signed-off-by: Colton Lewis <coltonlewis@google.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20241113190156.2145593-2-coltonlewis@google.com
19 lines
477 B
C
19 lines
477 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* linux/arch/arm/include/asm/perf_event.h
|
|
*
|
|
* Copyright (C) 2009 picoChip Designs Ltd, Jamie Iles
|
|
*/
|
|
|
|
#ifndef __ARM_PERF_EVENT_H__
|
|
#define __ARM_PERF_EVENT_H__
|
|
|
|
#define perf_arch_fetch_caller_regs(regs, __ip) { \
|
|
(regs)->ARM_pc = (__ip); \
|
|
frame_pointer((regs)) = (unsigned long) __builtin_frame_address(0); \
|
|
(regs)->ARM_sp = current_stack_pointer; \
|
|
(regs)->ARM_cpsr = SVC_MODE; \
|
|
}
|
|
|
|
#endif /* __ARM_PERF_EVENT_H__ */
|