]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf maps: Set the kmaps for newly created/added kernel maps
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Feb 2025 21:17:30 +0000 (18:17 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 6 Mar 2025 07:03:11 +0000 (23:03 -0800)
commit25d9c0301d36f4d80eb8bc8211e46900f177daf2
tree1d900cecf6e90ac40e0ad614ff21c87ee646211c
parent99deaf5578cd768fa76363a598f6865fa6ecc891
perf maps: Set the kmaps for newly created/added kernel maps

When using __maps__insert_sorted() the map kmaps field needs to be
initialized, as we need kernel maps to work with map__kmap().

Fix it by using the newly introduced map__set_kmap() method.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/lkml/Z74V0hZXrTLM6VIJ@x1
Link: https://lore.kernel.org/r/20250228211734.33781-3-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/maps.c