]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf/powerpc: Use perf_arch_instruction_pointer()
authorColton Lewis <coltonlewis@google.com>
Wed, 13 Nov 2024 19:01:53 +0000 (19:01 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 14 Nov 2024 09:40:01 +0000 (10:40 +0100)
Make sure PowerPC uses the arch-specific function now that those have
been reorganized.

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: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://lore.kernel.org/r/20241113190156.2145593-4-coltonlewis@google.com
arch/powerpc/perf/callchain.c
arch/powerpc/perf/callchain_32.c
arch/powerpc/perf/callchain_64.c

index 6b4434dd0ff307c5673e0bd0a8ff25e38023c005..26aa26482c9ac0f952b828a15df6598a2110ca0a 100644 (file)
@@ -51,7 +51,7 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re
 
        lr = regs->link;
        sp = regs->gpr[1];
-       perf_callchain_store(entry, perf_instruction_pointer(regs));
+       perf_callchain_store(entry, perf_arch_instruction_pointer(regs));
 
        if (!validate_sp(sp, current))
                return;
index ea8cfe3806dce39aaf9e807d4b4699b73b7bda1f..ddcc2d8aa64a55e7c7795192428b1bea68010570 100644 (file)
@@ -139,7 +139,7 @@ void perf_callchain_user_32(struct perf_callchain_entry_ctx *entry,
        long level = 0;
        unsigned int __user *fp, *uregs;
 
-       next_ip = perf_instruction_pointer(regs);
+       next_ip = perf_arch_instruction_pointer(regs);
        lr = regs->link;
        sp = regs->gpr[1];
        perf_callchain_store(entry, next_ip);
index 488e8a21a11ea55b7c63233814542f91ac0278d6..115d1c105e8a8421842064473a88ebcb35be08db 100644 (file)
@@ -74,7 +74,7 @@ void perf_callchain_user_64(struct perf_callchain_entry_ctx *entry,
        struct signal_frame_64 __user *sigframe;
        unsigned long __user *fp, *uregs;
 
-       next_ip = perf_instruction_pointer(regs);
+       next_ip = perf_arch_instruction_pointer(regs);
        lr = regs->link;
        sp = regs->gpr[1];
        perf_callchain_store(entry, next_ip);