Skip to content

Commit 3e807cf

Browse files
coltonlewisIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Oliver Upton <[email protected]> Acked-by: Madhavan Srinivasan <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 04782e6 commit 3e807cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/powerpc/perf/callchain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re
5151

5252
lr = regs->link;
5353
sp = regs->gpr[1];
54-
perf_callchain_store(entry, perf_instruction_pointer(regs));
54+
perf_callchain_store(entry, perf_arch_instruction_pointer(regs));
5555

5656
if (!validate_sp(sp, current))
5757
return;

arch/powerpc/perf/callchain_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void perf_callchain_user_32(struct perf_callchain_entry_ctx *entry,
139139
long level = 0;
140140
unsigned int __user *fp, *uregs;
141141

142-
next_ip = perf_instruction_pointer(regs);
142+
next_ip = perf_arch_instruction_pointer(regs);
143143
lr = regs->link;
144144
sp = regs->gpr[1];
145145
perf_callchain_store(entry, next_ip);

arch/powerpc/perf/callchain_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void perf_callchain_user_64(struct perf_callchain_entry_ctx *entry,
7474
struct signal_frame_64 __user *sigframe;
7575
unsigned long __user *fp, *uregs;
7676

77-
next_ip = perf_instruction_pointer(regs);
77+
next_ip = perf_arch_instruction_pointer(regs);
7878
lr = regs->link;
7979
sp = regs->gpr[1];
8080
perf_callchain_store(entry, next_ip);

0 commit comments

Comments
 (0)