[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120325.162812.59519424882536855.davem@davemloft.net>
Date: Sun, 25 Mar 2012 16:28:12 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: acme@...stprotocols.net
CC: linux-kernel@...r.kernel.org
Subject: [PATCH 2/5] perf: addr2line wants addresses in same format as
objdump
Therefore, in symbol__get_source_line(), use map__rip_2objdump
instead of calling map->unmap_ip() unconditionally.
Signed-off-by: David S. Miller <davem@...emloft.net>
---
tools/perf/util/annotate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 734a503..26fa767 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -410,7 +410,7 @@ static int symbol__get_source_line(struct symbol *sym, struct map *map,
if (!notes->src->lines)
return -1;
- start = map->unmap_ip(map, sym->start);
+ start = map__rip_2objdump(map, sym->start);
for (i = 0; i < len; i++) {
char *path = NULL;
--
1.7.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists