aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-22 11:35:01 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-27 06:46:49 -0500
commite1c7c6a40c8037478742ce134190c1a955853bfb (patch)
treedbc8672c249d0fb5622fdd844246d41a4d71a759 /tools/perf/util
parent0f35cd4cea08a8893e3e2ea03cbdb65f5d2b0e7a (diff)
perf symbols: Fix inverted logic for showing kallsyms as the source of symbols
Only if we parsed /proc/kallsyms (or a copy found in the buildid cache) we should set the dso long name to "[kernel.kallsyms]". Reported-by: Mike Galbraith <efault@gmx.de> 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: <1264178102-4203-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 6f30fe18c265..1270cf867e61 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1671,7 +1671,7 @@ do_kallsyms:
1671out_try_fixup: 1671out_try_fixup:
1672 if (err > 0) { 1672 if (err > 0) {
1673out_fixup: 1673out_fixup:
1674 if (kallsyms_filename == NULL) 1674 if (kallsyms_filename != NULL)
1675 dso__set_long_name(self, strdup("[kernel.kallsyms]")); 1675 dso__set_long_name(self, strdup("[kernel.kallsyms]"));
1676 map__fixup_start(map); 1676 map__fixup_start(map);
1677 map__fixup_end(map); 1677 map__fixup_end(map);