diff options
| author | 2026-10-12 16:59:34 -0700 | |
|---|---|---|
| committer | 2026-10-13 14:29:12 -0300 | |
| commit | f814d9e6cdbef6413a72d6dd6d5e4e79e815cf44 (patch) | |
| tree | 6bfed8f438dce2f10d41480f319896033f90a1f1 /scripts/Makefile.thinlto | |
| parent | perf test attr: Source setup_python.sh instead of calling python (diff) | |
perf symbol: Fix symbol loading from libbfd
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.
Closes: https://lore.kernel.org/r/sashiko-outbox-162540@kernel.org
Fixes: eac9a4342e5447ca ("perf symbols: Try reading the symbol table with libbfd")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Remi Bernon <rbernon@codeweavers.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
