perf symbols: Fix annotation of vdso
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 14 Aug 2015 12:50:06 +0000 (15:50 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Aug 2015 14:07:38 +0000 (11:07 -0300)
commitf0ee3b467ab7a74ffce75190259eb59dbf30ecad
tree3af9b8c6edd012f9cadd7d1375bb7cac05ec60d6
parent3d7245b0946c13a97e3a10213b8fd0152972a0d5
perf symbols: Fix annotation of vdso

Older kernels attempt to prelink vdso to its virtual address.  To permit
annotation using objdump, the map__rip_2objdump() calculation must
result in that same address which we can infer from the start and offset
of the text section.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/1439556606-11297-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c