diff options
| author | Zecheng Li <zli94@ncsu.edu> | 2026-03-09 13:55:22 -0400 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-03-19 14:42:29 -0700 |
| commit | d35b0d5877109ecca106cc3835d4d23ac2cdc33c (patch) | |
| tree | d62ea1e4bcdb16cc380565bc5fbe68731f01c335 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 22b320777c5f496a36867f16f18870e67b123020 (diff) | |
perf annotate-data: Invalidate caller-saved regs for all calls
Previously, the x86 call handler returned early without invalidating
caller-saved registers when the call target symbol could not be resolved
(func == NULL). This violated the ABI which requires caller-saved
registers to be considered clobbered after any call instruction.
Fix this by:
1. Always invalidating caller-saved registers for any call instruction
(except __fentry__ which preserves registers)
2. Using dl->ops.target.name as fallback when func->name is unavailable,
allowing return type lookup for more call targets
This is a conservative change that may reduce type coverage for indirect
calls (e.g., callq *(%rax)) where we cannot determine the return type
but it ensures correctness.
Signed-off-by: Zecheng Li <zli94@ncsu.edu>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
