Files
linux-stable-mirror/tools/perf/util
Namhyung Kim 966460bace perf record: Cache build-ID of hit DSOs only
[ Upstream commit 6235ce7774 ]

It post-processes samples to find which DSO has samples.  Based on that
info, it can save used DSOs in the build-ID cache directory.  But for
some reason, it saves all DSOs without checking the hit mark.  Skipping
unused DSOs can give some speedup especially with --buildid-mmap being
default.

On my idle machine, `time perf record -a sleep 1` goes down from 3 sec
to 1.5 sec with this change.

Fixes: e29386c8f7 ("perf record: Add --buildid-mmap option to enable PERF_RECORD_MMAP2's build id")
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250731070330.57116-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 12:13:58 +02:00
..
2024-05-10 10:52:46 -03:00
2025-04-10 14:39:22 +02:00
2024-08-19 14:52:13 -03:00
2025-04-10 14:39:25 +02:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-12 18:07:10 -03:00
2024-08-12 18:07:10 -03:00
2024-07-31 16:58:18 -03:00
2024-08-30 09:24:27 -03:00
2024-08-12 18:05:14 -03:00
2024-08-12 18:05:14 -03:00
2024-08-19 14:51:46 -03:00
2024-08-19 14:51:46 -03:00
2024-09-11 11:27:42 -03:00
2024-08-01 18:55:55 -03:00
2024-09-11 11:27:42 -03:00
2024-09-11 11:27:42 -03:00
2024-09-11 11:27:42 -03:00
2024-08-12 18:05:14 -03:00
2024-09-27 15:38:52 -03:00