aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-05-19 10:13:02 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-05-19 12:44:41 -0400
commitf6e1467d8303a397ce40bcfb5f72f97d3ebc768f (patch)
treeb97e7f51f3a752888df041ce999218864026471a /tools/perf/util
parentce7f15452cc1dc1eca795542367871a07f37aa79 (diff)
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>
Diffstat (limited to 'tools/perf/util')
-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;