summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/perf_callchain.c
diff options
context:
space:
mode:
authorColton Lewis <coltonlewis@google.com>2024-11-13 19:01:51 +0000
committerIngo Molnar <mingo@kernel.org>2024-11-14 10:40:00 +0100
commite33ed362cf9e35db6082f7a776b7e8d557407e19 (patch)
tree7cafc0f74c78ecb005d6d1cc081722ba2c3b8d30 /arch/arm/kernel/perf_callchain.c
parentc554aa9ca976480839af342204e05bb4ce8367d5 (diff)
perf/arm: Drop unused functions
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
Diffstat (limited to 'arch/arm/kernel/perf_callchain.c')
-rw-r--r--arch/arm/kernel/perf_callchain.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/kernel/perf_callchain.c b/arch/arm/kernel/perf_callchain.c
index 1d230ac9d0eb..a2601b1ef318 100644
--- a/arch/arm/kernel/perf_callchain.c
+++ b/arch/arm/kernel/perf_callchain.c
@@ -96,20 +96,3 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re
arm_get_current_stackframe(regs, &fr);
walk_stackframe(&fr, callchain_trace, entry);
}
-
-unsigned long perf_instruction_pointer(struct pt_regs *regs)
-{
- return instruction_pointer(regs);
-}
-
-unsigned long perf_misc_flags(struct pt_regs *regs)
-{
- int misc = 0;
-
- if (user_mode(regs))
- misc |= PERF_RECORD_MISC_USER;
- else
- misc |= PERF_RECORD_MISC_KERNEL;
-
- return misc;
-}