From: Arnaldo Carvalho de Melo Date: Fri, 15 Jan 2010 01:45:27 +0000 (-0200) Subject: perf symbols: Use dso->long_name in dsos__find() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cf4e5b0838e822dd404638ad00d35b63fffe8191;p=linux-beck.git 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 Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1263519930-22803-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- 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) 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; }