[PATCH v10 05/16] perf annotate-x86: Parse movabs like a mov
From: Arnaldo Carvalho de Melo
Date: Fri Nov 20 2026 - 22:21:23 EST
From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
x86__instructions[] has no movabs: ins__find() strips the size suffix
of "movabsq" and still finds nothing, so mov__parse() never runs and
the source and target operands of the instruction are not split. The
data type tracking then sees nothing, where the same instruction as a
plain mov sets the destination register.
The clang allmodconfig build has plenty, 282558 in vmlinux, all with an
immediate, the KASAN shadow offset:
ffffffff81271e2b: movabsq $-0x2000040000000000, %r15
No movabs with a memory operand shows up in vmlinux or in any object of
that build.
Add it as a mov.
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/annotate-arch/annotate-x86.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/annotate-arch/annotate-x86.c b/tools/perf/util/annotate-arch/annotate-x86.c
index 19663b780d19e2c4..3f6cf3bfb63dd300 100644
--- a/tools/perf/util/annotate-arch/annotate-x86.c
+++ b/tools/perf/util/annotate-arch/annotate-x86.c
@@ -85,6 +85,7 @@ static const struct ins x86__instructions[] = {
{ .name = "lea", .ops = &mov_ops, },
{ .name = "lock", .ops = &lock_ops, },
{ .name = "mov", .ops = &mov_ops, },
+ { .name = "movabs", .ops = &mov_ops, },
{ .name = "movapd", .ops = &mov_ops, },
{ .name = "movaps", .ops = &mov_ops, },
{ .name = "movdqa", .ops = &mov_ops, },
--
2.56.0