aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/subcmd/help.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2025-09-04 16:17:31 +0000
committerNamhyung Kim <[email protected]>2025-09-04 23:37:35 +0000
commitca81e74dc34734078d34485d4aa123561ba75b15 (patch)
treec1a10abe7804776166b2b29cd3404df290f53f5f /tools/lib/subcmd/help.c
parentperf test: Checking BPF metadata collection fails on version string (diff)
downloadkernel-ca81e74dc34734078d34485d4aa123561ba75b15.tar.gz
kernel-ca81e74dc34734078d34485d4aa123561ba75b15.zip
perf symbol-elf: Add support for the block argument for libbfd
James Clark caught that the BUILD_NONDISTRO=1 build with libbfd was broken due to an update to the read_build_id function adding a blocking argument. Add support for this argument by first opening the file blocking or non-blocking, then switching from bfd_openr to bfd_fdopenr and passing the opened fd. bfd_fdopenr closes the fd on error and when bfd_close are called. Reported-by: James Clark <[email protected]> Closes: https://lore.kernel.org/lkml/20250903-james-perf-read-build-id-fix-v1-2-6a694d0a980f@linaro.org/ Fixes: 2c369d91d093 ("perf symbol: Add blocking argument to filename__read_build_id") Signed-off-by: Ian Rogers <[email protected]> Reviewed-by: James Clark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/lib/subcmd/help.c')
0 files changed, 0 insertions, 0 deletions