diff options
| author | Hari Bathini <hbathini@linux.ibm.com> | 2026-03-03 23:40:26 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-03-07 16:02:26 +0530 |
| commit | 157820264ac3dadfafffad63184b883eb28f9ae0 (patch) | |
| tree | 7994e2538209d1afe57e872657f352dbf137f2bd /tools/perf/scripts/python/stackcollapse.py | |
| parent | 521bd39d9d28ce54cbfec7f9b89c94ad4fdb8350 (diff) | |
| download | linux-157820264ac3dadfafffad63184b883eb28f9ae0.tar.gz linux-157820264ac3dadfafffad63184b883eb28f9ae0.zip | |
powerpc64/bpf: fix the address returned by bpf_get_func_ip
bpf_get_func_ip() helper function returns the address of the traced
function. It relies on the IP address stored at ctx - 16 by the bpf
trampoline. On 64-bit powerpc, this address is recovered from LR
accounting for OOL trampoline. But the address stored here was off
by 4-bytes. Ensure the address is the actual start of the traced
function.
Reported-by: Abhishek Dubey <adubey@linux.ibm.com>
Fixes: d243b62b7bd3 ("powerpc64/bpf: Add support for bpf trampolines")
Cc: stable@vger.kernel.org
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260303181031.390073-3-hbathini@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
