[PATCH 0/6 v2] Fixups for kernel maps insertion

Arnaldo Carvalho de Melo
2025-02-28T21:17:42Z

From: Arnaldo Carvalho de Melo <acme@redhat.com>

Hi Namhyung,

Here are the patches from the recent session on fixing the build
when DEBUG=1 is used, please take a look.

I think that since there are no reported problems and ended up
being a sizeable series, we better apply it to perf-tools-next,

Best Regards,

- Arnaldo

v2: Use map__set_kmap_maps() as suggested by Ian.

Arnaldo Carvalho de Melo (3):
perf maps: Introduce map__set_kmap_maps() for kernel maps
perf maps: Set the kmaps for newly created/added kernel maps
perf maps: Add missing map__set_kmap_maps() when replacing a kernel map

Namhyung Kim (3):
perf machine: Fixup kernel maps ends after adding extra maps
perf maps: Fixup maps_by_name when modifying maps_by_address
perf machine: Fix insertion of PERF_RECORD_KSYMBOL related kernel maps

tools/perf/util/machine.c | 6 ++--
tools/perf/util/maps.c | 58 +++++++++++++++++++++++++++++++++------
2 files changed, 52 insertions(+), 12 deletions(-)

--
2.48.1