Skip to content

Commit f40a063

Browse files
davem330acmel
authored andcommitted
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/[email protected] Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent ba28c59 commit f40a063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/annotate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static int symbol__get_source_line(struct symbol *sym, struct map *map,
408408
if (!notes->src->lines)
409409
return -1;
410410

411-
start = map->unmap_ip(map, sym->start);
411+
start = map__rip_2objdump(map, sym->start);
412412

413413
for (i = 0; i < len; i++) {
414414
char *path = NULL;

0 commit comments

Comments
 (0)