perf symbols: Use dso->long_name in dsos__find()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Jan 2010 01:45:27 +0000 (23:45 -0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 16 Jan 2010 09:58:47 +0000 (10:58 +0100)
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>
tools/perf/util/symbol.c

index ae61e9f4d6ebf90f14adfcbe6521cd31bb36614e..4267138c7bbe73de21830cba86ff65e41b74ee0f 100644 (file)
@@ -1679,7 +1679,7 @@ static struct dso *dsos__find(struct list_head *head, const char *name)
        struct dso *pos;
 
        list_for_each_entry(pos, head, node)
-               if (strcmp(pos->name, name) == 0)
+               if (strcmp(pos->long_name, name) == 0)
                        return pos;
        return NULL;
 }