perf symbols: Use dso->long_name in dsos__find()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, February 28, 2010 - 12:00 pm

Gitweb:     http://git.kernel.org/linus/cf4e5b0838e822dd404638ad00d35b63fffe8191
Commit:     cf4e5b0838e822dd404638ad00d35b63fffe8191
Parent:     9e201442de7c954f03710ac76f28c1927d07550c
Author:     Arnaldo Carvalho de Melo <acme@redhat.com>
AuthorDate: Thu Jan 14 23:45:27 2010 -0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Sat Jan 16 10:58:47 2010 +0100

    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>
---
 tools/perf/util/symbol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index ae61e9f..4267138 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;
 }
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
perf symbols: Use dso->long_name in dsos__find(), Linux Kernel Mailing ..., (Sun Feb 28, 12:00 pm)