perf symbols: dsos__read_build_ids() should read both user and kernel buildids
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Dec 2009 22:09:37 +0000 (20:09 -0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 10 Dec 2009 07:30:28 +0000 (08:30 +0100)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260396578-19116-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/symbol.c

index fffcb937cdcb207f470f1bf335f1e316e283bc12..e7508ad3450f7200ee9c8a5eec594d91d143b399 100644 (file)
@@ -938,8 +938,9 @@ static bool __dsos__read_build_ids(struct list_head *head)
 
 bool dsos__read_build_ids(void)
 {
-       return __dsos__read_build_ids(&dsos__kernel) ||
-              __dsos__read_build_ids(&dsos__user);
+       bool kbuildids = __dsos__read_build_ids(&dsos__kernel),
+            ubuildids = __dsos__read_build_ids(&dsos__user);
+       return kbuildids || ubuildids;
 }
 
 /*