]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf annotate-data: Handle direct use of stack pointer without fbreg
authorNamhyung Kim <namhyung@kernel.org>
Sun, 26 Jan 2025 21:02:42 +0000 (13:02 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 26 Feb 2025 21:42:49 +0000 (13:42 -0800)
commitf4dc5a3355a84f53ff3287d496728c7b77160069
treeb9f060a407c2f1398fdbaf33eef241d4916df9dd
parentc40aa8d98db64ee2144bf6cc55eddb4f7625d728
perf annotate-data: Handle direct use of stack pointer without fbreg

Sometimes compiler generates code to use the stack pointer register
without frame pointer.  As we know RSP is the stack register on x86,
let's treat it as same as fbreg.  But the offset would be opposite
direction so update the debug message accordingly.

Reported-by: Blake Jones <blakejones@google.com>
Link: https://lore.kernel.org/r/20250126210242.1181225-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/arch/x86/annotate/instructions.c
tools/perf/util/annotate-data.c