summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAbhishek Dubey <adubey@linux.ibm.com>2026-09-28 10:43:50 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-09-29 22:08:35 +0530
commit3ebf4ae6d8afac11fe6732418dd378e031f8f4ed (patch)
tree64627dce339b49afebaf99fbe2f9846953da58f5 /tools/perf/scripts/python/stackcollapse.py
parent12d238d584ba485a99e02e033746100fc7099184 (diff)
powerpc64/bpf: fix compare instruction emitted for tailcall
The tail_call_info field can contain either a scalar counter value or a 64-bit pointer to the counter, using a 32-bit compare (cmplwi) only checks the lower 32 bits, which can lead to incorrect comparisions when location of counter is near 4GB boundary. Use instruction cmpldi/cmplwi for accurate comparision in corresponding cases. Reported-by: sashiko-bot@kernel.org Closes: https://lore.kernel.org/bpf/20260517191450.85AE6C2BCB8@smtp.kernel.org/ Fixes: 2ed2d8f6fb38 ("powerpc64/bpf: Support tailcalls with subprogs") Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com> Signed-off-by: Saket Kumar Bhaskar <skb99@linux.ibm.com> Tested-by: Yeswanth Krishna Tellakula <yeswanth@linux.ibm.com> Tested-by: R Nageswara Sastry <rnsastry@linux.ibm.com> Acked-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/961601491716ef9e00f79e3aa9f7f4ef4440d4d3.1789982239.git.skb99@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions