linux-sg2042/tools/perf/arch/s390/util
Song Shan Gong 203d8a4aa6 perf s390: Fix 'start' address of module's map
At present, when creating module's map, perf gets 'start' address by
parsing '/proc/modules', but it's the module base address, it isn't the
start address of the '.text' section.

In most arches, it's OK. But for s390, it places 'GOT' and 'PLT'
relocations before '.text' section. So there exists an offset between
module base address and '.text' section, which will incur wrong symbol
resolution for modules.

Fix this bug by getting 'start' address of module's map from parsing
'/sys/module/[module name]/sections/.text', not from '/proc/modules'.

Signed-off-by: Song Shan Gong <gongss@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1469070651-6447-2-git-send-email-gongss@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-07-26 16:46:12 -03:00
..
Build perf s390: Fix 'start' address of module's map 2016-07-26 16:46:12 -03:00
dwarf-regs.c perf tools: Fix build on non-glibc systems due to libio.h absence 2013-03-15 13:05:13 -03:00
header.c perf tools: Allow to use cpuinfo on s390 2014-07-07 16:55:24 -03:00
kvm-stat.c perf kvm/{x86,s390}: Remove const from kvm_events_tp 2016-01-29 17:49:53 -03:00
machine.c perf s390: Fix 'start' address of module's map 2016-07-26 16:46:12 -03:00