kernel_optimize_test/tools
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
..
arch
build
cgroup
firewire
gpio
hv
iio
include tools: Copy linux/{hash,poison}.h and check for drift 2016-07-18 18:41:50 -03:00
kvm/kvm_stat
laptop/freefall
lguest
lib tools lib bpf: Use official ELF e_machine value 2016-07-26 10:08:53 -03:00
net
nfsd
objtool tools build: Fix objtool build with ARCH=x86_64 2016-07-22 16:37:44 -03:00
perf perf s390: Fix 'start' address of module's map 2016-07-26 16:46:12 -03:00
power
scripts tools build: Fix objtool build with ARCH=x86_64 2016-07-22 16:37:44 -03:00
spi
testing
thermal/tmon
time
usb
virtio
vm
Makefile