]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf record: Make sure to update build-ID cache
authorNamhyung Kim <namhyung@kernel.org>
Thu, 6 Nov 2025 19:00:23 +0000 (11:00 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 7 Nov 2025 01:29:16 +0000 (17:29 -0800)
commit6bd89ae7d14788ba15e25289479addcb98e7dc26
treeffbf7d3cba38ab6825789b4cf718aae4744335cd
parent4df43709370cc18e9b09aa8049a6ab1f780af77e
perf record: Make sure to update build-ID cache

Recent change on enabling --buildid-mmap by default brought an issue
with build-id handling.  With build-ID in MMAP2 records, we don't need
to save the build-ID table in the header of a perf data file.

But the actual file contents still need to be cached in the debug
directory for annotation etc.  Split the build-ID header processing and
caching and make sure perf record to save hit DSOs in the build-ID cache
by moving perf_session__cache_build_ids() to the end of the record__
finish_output().

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-record.c
tools/perf/util/header.c