]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf annotate: Skip annotating data types to lea instructions
authorZecheng Li <zecheng@google.com>
Mon, 13 Oct 2025 18:15:58 +0000 (18:15 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 21 Oct 2025 13:02:49 +0000 (06:02 -0700)
commit068b6a4524262910bc283c7b3c2d7cf0d2c1f833
tree5c64fc94d66c3984eb8de2b9f27789b1cd223d61
parentf1204e5846d22fb2fffbd1164eeb19535f306797
perf annotate: Skip annotating data types to lea instructions

Introduce a helper function is_address_gen_insn() to check
arch-dependent address generation instructions like lea in x86. Remove
type annotation on these instructions since they are not accessing
memory. It should be counted as `no_mem_ops`.

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