diff options
| author | Christophe Leroy <[email protected]> | 2020-02-20 22:51:38 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-03-04 22:44:28 +1100 |
| commit | 0e63f0151719ee4cb90d85e60c98045099c995e2 (patch) | |
| tree | 80666884ccc3593086556b42897704d64e965a4e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 3d13e839e801e081bdece0127c2affa33d0f77cf (diff) | |
powerpc: Add current_stack_pointer as a register global
current_stack_frame() doesn't return the stack pointer, but the
caller's stack frame. See commit bfe9a2cfe91a ("powerpc: Reimplement
__get_SP() as a function not a define") and commit
acf620ecf56c ("powerpc: Rename __get_SP() to current_stack_pointer()")
for details.
In some cases this is overkill or incorrect, as it doesn't return the
current value of r1.
So add a current_stack_pointer register global to get the value of r1
directly.
Signed-off-by: Christophe Leroy <[email protected]>
[mpe: Split out of other patch, tweak change log]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions