mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
perf/powerpc: Use perf_arch_instruction_pointer()
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
This commit is contained in:
parent
04782e6391
commit
3e807cf07d
@ -51,7 +51,7 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re
|
|||||||
|
|
||||||
lr = regs->link;
|
lr = regs->link;
|
||||||
sp = regs->gpr[1];
|
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))
|
if (!validate_sp(sp, current))
|
||||||
return;
|
return;
|
||||||
|
@ -139,7 +139,7 @@ void perf_callchain_user_32(struct perf_callchain_entry_ctx *entry,
|
|||||||
long level = 0;
|
long level = 0;
|
||||||
unsigned int __user *fp, *uregs;
|
unsigned int __user *fp, *uregs;
|
||||||
|
|
||||||
next_ip = perf_instruction_pointer(regs);
|
next_ip = perf_arch_instruction_pointer(regs);
|
||||||
lr = regs->link;
|
lr = regs->link;
|
||||||
sp = regs->gpr[1];
|
sp = regs->gpr[1];
|
||||||
perf_callchain_store(entry, next_ip);
|
perf_callchain_store(entry, next_ip);
|
||||||
|
@ -74,7 +74,7 @@ void perf_callchain_user_64(struct perf_callchain_entry_ctx *entry,
|
|||||||
struct signal_frame_64 __user *sigframe;
|
struct signal_frame_64 __user *sigframe;
|
||||||
unsigned long __user *fp, *uregs;
|
unsigned long __user *fp, *uregs;
|
||||||
|
|
||||||
next_ip = perf_instruction_pointer(regs);
|
next_ip = perf_arch_instruction_pointer(regs);
|
||||||
lr = regs->link;
|
lr = regs->link;
|
||||||
sp = regs->gpr[1];
|
sp = regs->gpr[1];
|
||||||
perf_callchain_store(entry, next_ip);
|
perf_callchain_store(entry, next_ip);
|
||||||
|
Loading…
Reference in New Issue
Block a user