aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/symbol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index a06131f6259a..87d9b1b8b6bb 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)
1131 list_for_each_entry(pos, head, node) { 1131 list_for_each_entry(pos, head, node) {
1132 if (with_hits && !pos->hit) 1132 if (with_hits && !pos->hit)
1133 continue; 1133 continue;
1134 if (pos->has_build_id) {
1135 have_build_id = true;
1136 continue;
1137 }
1134 if (filename__read_build_id(pos->long_name, pos->build_id, 1138 if (filename__read_build_id(pos->long_name, pos->build_id,
1135 sizeof(pos->build_id)) > 0) { 1139 sizeof(pos->build_id)) > 0) {
1136 have_build_id = true; 1140 have_build_id = true;