projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b164308
)
powerpc/perf: Drop the case of returning 0 as instruction pointer
author
Kajol Jain
<kjain@linux.ibm.com>
Wed, 18 Aug 2021 17:15:55 +0000
(22:45 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 25 Aug 2021 12:38:19 +0000
(22:38 +1000)
Drop the case of returning 0 as instruction pointer since kernel
never executes at 0 and userspace almost never does either.
Fixes:
e6878835ac47
("powerpc/perf: Sample only if SIAR-Valid bit is set in P7+")
Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20210818171556.36912-2-kjain@linux.ibm.com
arch/powerpc/perf/core-book3s.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/perf/core-book3s.c
b/arch/powerpc/perf/core-book3s.c
index
3a782a3
..
9bb466d
100644
(file)
--- a/
arch/powerpc/perf/core-book3s.c
+++ b/
arch/powerpc/perf/core-book3s.c
@@
-2270,8
+2270,6
@@
unsigned long perf_instruction_pointer(struct pt_regs *regs)
return regs->nip;
} else if (use_siar && siar_valid(regs))
return siar + perf_ip_adjust(regs);
- else if (use_siar)
- return 0; // no valid instruction pointer
else
return regs->nip;
}