Skip to content

Commit

Permalink
perf annotate: addr2line wants addresses in same format as objdump
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
davem330 authored and acmel committed Mar 28, 2012
1 parent ba28c59 commit f40a063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f40a063

Please sign in to comment.