aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 4fc3899bf83a..28ea4e0c3658 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -189,7 +189,7 @@ static int parse_line(FILE *file, struct hist_entry *he, u64 len)
189 line_ip = -1; 189 line_ip = -1;
190 } 190 }
191 191
192 start = he->map->unmap_ip(he->map, sym->start); 192 start = map__rip_2objdump(he->map, sym->start);
193 193
194 if (line_ip != -1) { 194 if (line_ip != -1) {
195 const char *path = NULL; 195 const char *path = NULL;
@@ -397,7 +397,8 @@ static void annotate_sym(struct hist_entry *he)
397 dso, dso->long_name, sym, sym->name); 397 dso, dso->long_name, sym, sym->name);
398 398
399 sprintf(command, "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS %s|grep -v %s", 399 sprintf(command, "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS %s|grep -v %s",
400 map->unmap_ip(map, sym->start), map->unmap_ip(map, sym->end), 400 map__rip_2objdump(map, sym->start),
401 map__rip_2objdump(map, sym->end),
401 filename, filename); 402 filename, filename);
402 403
403 if (verbose >= 3) 404 if (verbose >= 3)