]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf dwarf-aux: Preserve typedefs in match_var_offset
authorZecheng Li <zecheng@google.com>
Mon, 9 Mar 2026 17:55:15 +0000 (13:55 -0400)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 19 Mar 2026 21:42:29 +0000 (14:42 -0700)
commitace16303179efad4e1a2aebb27a661e5d1e7277d
treed4953da4f6f3f21a7e1295c53a1b856a1ba52c8f
parent30b2e6fa58f3b9eff86fb851a8926bf814d82dcd
perf dwarf-aux: Preserve typedefs in match_var_offset

Preserve typedefs in match_var_offset to match the results by
__die_get_real_type. Also move the (offset == 0) branch after the
is_pointer check to ensure the correct type is used, fixing cases where
an incorrect pointer type was chosen when the access offset was 0.

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