From a0c6b8aef853eedaa0980f07c0a502a5a8a9740e Mon Sep 17 00:00:00 2001 From: Maksim Panchenko Date: Wed, 3 Jul 2024 17:30:37 -0700 Subject: [PATCH] [BOLT][docs] Add merge-fdata to Linux optimization guide (#97659) --- bolt/docs/OptimizingLinux.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bolt/docs/OptimizingLinux.md b/bolt/docs/OptimizingLinux.md index 1fffcf22529068..0045f0ead9fd0d 100644 --- a/bolt/docs/OptimizingLinux.md +++ b/bolt/docs/OptimizingLinux.md @@ -44,6 +44,11 @@ $ perf2bolt -p perf.data -o perf.fdata vmlinux Under a high load, `perf.data` should be several gigabytes in size and you should expect the converted `perf.fdata` not to exceed 100 MB. +Profiles collected from multiple workloads could be joined into a single profile using `merge-fdata` utility: +```bash +$ merge-fdata perf.1.fdata perf.2.fdata ... perf..fdata > perf.merged.fdata +``` + Two changes are required for the kernel build. The first one is optional but highly recommended. It introduces a BOLT-reserved space into `vmlinux` code section: