diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-24 16:27:56 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-25 18:13:25 +0200 |
| commit | 3dfdd195c7e45f5a6b85dd2b6e3722610dbd5bf5 (patch) | |
| tree | f2c276e725c81540cd0d9d3d11586bcbfbfdf6fb /tools/perf/python | |
| parent | a6ac1e9ca936b20fc450dda79ab834e93678f8d8 (diff) | |
| download | linux-next-3dfdd195c7e45f5a6b85dd2b6e3722610dbd5bf5.tar.gz linux-next-3dfdd195c7e45f5a6b85dd2b6e3722610dbd5bf5.zip | |
perf dwarf-aux: Add die_same_file() and die_get_type_die()
dwarf_dieoffset() is relative to the file the DIE is in, so an offset
saved by die_collect_vars()/die_collect_global_vars() is only
meaningful in that file: add die_same_file(), comparing the Dwarf each
DIE's CU belongs to, and die_get_type_die(), resolving the offset in it
with the saved tag as a sanity check. Resolving the offset in the main
file instead parses whatever is at it when it came from the dwz common
file.
dwarf_cu_getdwarf() is new in elfutils 0.160, so the libdw feature test
probes for it and Makefile.config says 0.160.
Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions
