Skip to content

Commit

Permalink
perf symbols: Use dso->long_name in dsos__find()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Jan 16, 2010
1 parent 9e20144 commit cf4e5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cf4e5b0

Please sign in to comment.