[PATCH v2 0/5] perf tools: Random fixes for the symbol code

From: Namhyung Kim

Date: Mon Oct 19 2026 - 01:57:53 EST


Hello,

These are assorted random fixes found by Sashiko review during the last
perf dso/symbol code rework.

v2 changes)

* add perf_env for completeness in the maps tests
* convert to bfd_arch_bits_per_address for PE files

Thanks,
Namhyung


Namhyung Kim (5):
perf test: Fix a memory leak in PE file parsing test
perf test: Make sure maps to have a machine
perf tools: Remove NULL check for maps__machine()
perf symbol: Check result when reading section headers
perf symbol: Ensure dso__set_is_64_bit() for libbfd

tools/perf/tests/maps.c | 30 +++++++++++++++++++++++++-----
tools/perf/tests/pe-file-parsing.c | 13 ++++++++++---
tools/perf/util/dlfilter.c | 3 +--
tools/perf/util/event.c | 3 ---
tools/perf/util/libbfd.c | 1 +
tools/perf/util/map.c | 9 +++------
tools/perf/util/python.c | 2 +-
tools/perf/util/symbol-elf.c | 4 +++-
8 files changed, 44 insertions(+), 21 deletions(-)

--
2.56.0