diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index a06131f6259a1dd5b65fee74d73a0de33eaa0d03..87d9b1b8b6bb6151307caeebabe613d808242ff2 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -1131,6 +1131,10 @@ bool __dsos__read_build_ids(struct list_head *head, bool with_hits) list_for_each_entry(pos, head, node) { if (with_hits && !pos->hit) continue; + if (pos->has_build_id) { + have_build_id = true; + continue; + } if (filename__read_build_id(pos->long_name, pos->build_id, sizeof(pos->build_id)) > 0) { have_build_id = true;