linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] perf maps: Improve the kcore maps merging
@ 2024-05-15 21:10 Leo Yan
  2024-05-15 21:10 ` [PATCH v2 1/2] perf maps: Sort kcore maps Leo Yan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Leo Yan @ 2024-05-15 21:10 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Adrian Hunter, James Clark,
	Peter Zijlstra, Ingo Molnar, Namhyung Kim, Ian Rogers,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Athira Rajeev,
	linux-perf-users, linux-kernel
  Cc: Leo Yan

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 difficulty, e.g. some kcore maps might be ignored. This is why
the dso__load_kcore() function handles the kernel text section
particularly for replacement a complete kernel section.

This patch sorts the kcore maps and ensures the subset region is placed
ahead of the superset region in the list. With this change, merging
these maps becomes easier - no need the special handling for the kernel
text section.

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 (2):
  perf maps: Sort kcore maps
  perf maps: Remove the replacement of kernel map

 tools/perf/util/symbol.c | 117 +++++++++++++++++++--------------------
 1 file changed, 57 insertions(+), 60 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-20  9:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15 21:10 [PATCH v2 0/2] perf maps: Improve the kcore maps merging Leo Yan
2024-05-15 21:10 ` [PATCH v2 1/2] perf maps: Sort kcore maps Leo Yan
2024-05-15 21:10 ` [PATCH v2 2/2] perf maps: Remove the replacement of kernel map Leo Yan
2024-05-15 21:39 ` [PATCH v2 0/2] perf maps: Improve the kcore maps merging Ian Rogers
2024-05-16  8:55   ` Leo Yan
2024-05-20  9:42   ` Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).