Commit-ID: 203d8a4aa6edf2c19206316d439ec5dae52ce581
Gitweb: http://git.kernel.org/tip/203d8a4aa6edf2c19206316d439ec5dae52ce581
Author: Song Shan Gong
AuthorDate: Thu, 21 Jul 2016 11:10:51 +0800
Committer: Arnaldo Carvalho de Melo
CommitDate: Tue, 26 Jul 2016 16:46:12 -0300
perf s390
LT' 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/modul
text_start';
2.Parse '.text' start addr from 'sys' through 'sysfs__read_ull', not
'hex2u64()';
2.Perfect code: check return value and allocated pointer by 'strdup'.
Song Shan Gong (1):
s390/perf: fix 'start' address of module'
LT' 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 n
not
'hex2u64()';
2.Perfect code: check return value and allocated pointer by 'strdup'.
Song Shan Gong (1):
s390/perf: fix 'start' address of module's map
tools/perf/arch/s390/util/Build | 2 ++
tools/perf/arch/s390/util/sym-handling.c | 27 +
is kernel map start(no-zero), we can
get '_text' symbol of vmlinux, but we can't find the pair '_text' symbol of
kallsyms, because there is no map starting from zero. This mismatch is
incorrrect.
Fix by just ignoring these symbols before kernel start.
Signed-off-by: Son
LT' 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 n
Change log:
>From V1:
1.change func name from 'fix__arch_module_baseaddr' to
'fix__arch_module_text_start';
2.Parse '.text' start addr from 'sys' through 'sysfs__read_ull', not
'hex2u64()';
2.Perfect code: check return value and alloc
LT' 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 n
build_id()', so the right filename ought to be 'dso->long_name'.
Signed-off-by: Song Shan Gong
Reviewed-by: Christian Borntraeger
---
tools/perf/util/symbol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.
10 matches
Mail list logo