Skip to content

Commit f6e1467

Browse files
committed
perf symbols: Don't try to read the build-id twice
In __dsos__read_build_ids if the dso already had its build-id read, don't try again. Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent ce7f154 commit f6e1467

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tools/perf/util/symbol.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,10 @@ bool __dsos__read_build_ids(struct list_head *head, bool with_hits)
11311131
list_for_each_entry(pos, head, node) {
11321132
if (with_hits && !pos->hit)
11331133
continue;
1134+
if (pos->has_build_id) {
1135+
have_build_id = true;
1136+
continue;
1137+
}
11341138
if (filename__read_build_id(pos->long_name, pos->build_id,
11351139
sizeof(pos->build_id)) > 0) {
11361140
have_build_id = true;

0 commit comments

Comments
 (0)