[PATCH 0/2] perf tools: Fix symbol error on ARM64

From: Wang Nan
Date: Tue Feb 02 2016 - 03:57:28 EST


He Kuang has described this problem at [1] that, on ARM64, perf report
output wrong symbol for a shared object.

These two patches solve this problem. The key is patch 2/2: force
adjust symbol for shared object. However, after setting
dso->adjust_symbols, map__rip_2objdump() also need to be adjust, or
perf annotate reports incorrect result. Patch 1/1 prepare this change.

[1] http://lkml.kernel.org/g/1452567507-54013-1-git-send-email-hekuang@xxxxxxxxxx

Wang Nan (2):
perf tools: Record text offset in dso to calculate objdump address
perf tools: Adjust symbol for shared objects

tools/perf/util/dso.h | 1 +
tools/perf/util/map.c | 14 ++++++++++++++
tools/perf/util/symbol-elf.c | 13 +++++++------
3 files changed, 22 insertions(+), 6 deletions(-)

Signed-off-by: Wang Nan <wangnan0@xxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Cc: Cody P Schafer <dev@xxxxxxxxxx>
Cc: He Kuang <hekuang@xxxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Kirill Smelkov <kirr@xxxxxxxxxx>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Li Zefan <lizefan@xxxxxxxxxx>
Cc: pi3orama@xxxxxxx

--
1.8.3.4