Re: [PATCH v3 1/4] perf symbol: Fix symbol loading from libbfd

From: Arnaldo Carvalho de Melo

Date: Tue Oct 13 2026 - 16:25:42 EST


On Mon, Oct 12, 2026 at 04:59:34PM -0700, Namhyung Kim wrote:
> The dso__load() should return a positive number (number of symbols
> loaded) when it succeded to load symbols. But dso__load_bfd_symbols()
> only returns 0 and it's hard to check if it actually loaded symbols or
> not. Let's return the value of dso__has_symbol() and check it in
> dso__load() so that it can return 1 for success.
>
> Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
> Closes: https://lore.kernel.org/r/sashiko-outbox-162540@xxxxxxxxxx
> Fixes: eac9a4342e5447cad ("perf symbols: Try reading the symbol table with libbfd")
> Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>

Thanks, applied to perf-tools-next, for v7.4.

- Arnaldo