]> git.ipfire.org Git - thirdparty/linux.git/commit
perf annotate: Track address registers via TSR_KIND_POINTER
authorZecheng Li <zecheng@google.com>
Mon, 13 Oct 2025 18:15:59 +0000 (18:15 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 21 Oct 2025 13:02:49 +0000 (06:02 -0700)
commit24a30ce9b14ce84b00105b970c4d16eabe09a62a
treeda0d495b89d4bbcab16a5dc494c2c325c5c8046d
parent068b6a4524262910bc283c7b3c2d7cf0d2c1f833
perf annotate: Track address registers via TSR_KIND_POINTER

Introduce TSR_KIND_POINTER to improve the data type profiler's ability
to track pointer-based memory accesses and address register variables.

TSR_KIND_POINTER represents that the location holds a pointer type to
the type in the type state. The semantics match the `breg` registers
that describe a memory location.

This change implements handling for this new kind in mov instructions
and in the check_matching_type() function. When a TSR_KIND_POINTER is
moved to the stack, the stack state size is set to the architecture's
pointer size.

Signed-off-by: Zecheng Li <zecheng@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/arch/x86/annotate/instructions.c
tools/perf/util/annotate-data.c
tools/perf/util/annotate-data.h