mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
perf annotate: 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. Link: http://lkml.kernel.org/r/20120325.162812.59519424882536855.davem@davemloft.net Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
ba28c59bc9
commit
f40a06339f
@ -408,7 +408,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;
|
||||
|
Loading…
Reference in New Issue
Block a user