[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240520090647.949371-1-leo.yan@arm.com>
Date: Mon, 20 May 2024 10:06:44 +0100
From: Leo Yan <leo.yan@....com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Namhyung Kim <namhyung@...nel.org>,
James Clark <james.clark@....com>,
Adrian Hunter <adrian.hunter@...el.com>,
Athira Rajeev <atrajeev@...ux.vnet.ibm.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Leo Yan <leo.yan@....com>
Subject: [PATCH v3 0/3] perf maps: Improve the kcore maps merging
This patch series follows up on the patch [1] to improve the sorting and
merging of kcore maps.
Since the kcore maps are not sorted, merging them into the kernel maps
causes mess, e.g. some kcore maps might be ignored. Patch 01 sorts the
kcore maps and ensures the subset region is placed ahead of the superset
region in the list.
Patch 02 uses maps__remove_maps() to remove the identical kernel map
(generated by reading symbols from '/proc/kallsyms') from the map list.
This can give us a neat list without interfered by old map data and is a
preparation for later relying puerly on kcore maps.
Patch 03 removes the kernel text section replacement. Alternatively,
it searches the kcore maps and finds the map for kernel text section,
then update the pointer 'machine->vmlinux_map'.
This patch series is based on the latest acme's perf-tool-next branch
and tested on Arm64 Hikey960 board.
[1] https://lore.kernel.org/linux-perf-users/438f8725-ef3f-462f-90e2-840cab478ee5@arm.com/T/#m7c86a69d43103cd0cb446b0993e47c36df0f40f2
Leo Yan (3):
perf maps: Sort kcore maps
perf maps: Remove the kernel text map with maps__remove_maps()
perf maps: Remove the replacement of kernel map
tools/perf/util/maps.c | 4 +-
tools/perf/util/maps.h | 2 +-
tools/perf/util/symbol.c | 136 ++++++++++++++++++++-------------------
3 files changed, 74 insertions(+), 68 deletions(-)
--
2.34.1
Powered by blists - more mailing lists