tools/perf: Add --exclude-buildids option to perf archive command
authorTianyou Li <tianyou.li@intel.com>
Wed, 25 Jun 2025 16:14:01 +0000 (00:14 +0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Jun 2025 22:40:19 +0000 (15:40 -0700)
commit9d8511daf1e81a93007b7bb5020d4ce5ce001deb
tree949937e93f40fd887adc150d38d64a8fe8c31024
parente201757f7a0a901e313d638c545ed6cd0dc6870e
tools/perf: Add --exclude-buildids option to perf archive command

When make a perf archive, it may contains the binaries that user did not want to ship with,
add --exclude-buildids option to specify a file which contains the buildids need to be
excluded. The file can be generated from command:

    perf buildid-list -i perf.data --with-hits | grep -v "^ " > exclude-buildids.txt

Then remove the lines from the exclude-buildids.txt for buildids should be included.

Signed-off-by: Tianyou Li <tianyou.li@intel.com>
Reviewed-by: Wangyang Guo <wangyang.guo@intel.com>
Link: https://lore.kernel.org/r/20250625161509.2599646-1-tianyou.li@intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/perf-archive.sh