aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-14 20:45:27 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-16 04:58:47 -0500
commitcf4e5b0838e822dd404638ad00d35b63fffe8191 (patch)
tree49cefa7b67943c5d8bc919e1e46a05e39a848de7 /tools/perf/util/symbol.c
parent9e201442de7c954f03710ac76f28c1927d07550c (diff)
perf symbols: Use dso->long_name in dsos__find()
If not we end up duplicating the module DSOs because first we insert them using the short name found in /proc/modules, then, when processing synthesized MMAP events we add them again. 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: <1263519930-22803-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.c')
-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 ae61e9f4d6eb..4267138c7bbe 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1679,7 +1679,7 @@ static struct dso *dsos__find(struct list_head *head, const char *name)
1679 struct dso *pos; 1679 struct dso *pos;
1680 1680
1681 list_for_each_entry(pos, head, node) 1681 list_for_each_entry(pos, head, node)
1682 if (strcmp(pos->name, name) == 0) 1682 if (strcmp(pos->long_name, name) == 0)
1683 return pos; 1683 return pos;
1684 return NULL; 1684 return NULL;
1685} 1685}