diff options
author | Adrian Hunter <[email protected]> | 2019-01-09 11:18:30 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-02-06 10:00:40 -0300 |
commit | d6d457451eb94fa747dc202765592eb8885a7352 (patch) | |
tree | 89d7332b28cca641bf5d64f4bf39e858bfa95dfe /tools/perf/scripts/python | |
parent | 2d08f87fe7a2e4d74dc8b0eb645737d83dd932a9 (diff) |
perf tools: Fix split_kallsyms_for_kcore() for trampoline symbols
Kallsyms symbols do not have a size, so the size becomes the distance to
the next symbol.
Consequently the recently added trampoline symbols end up with large
sizes because the trampolines are some distance from one another and the
main kernel map.
However, symbols that end outside their map can disrupt the symbol tree
because, after mapping, it can appear incorrectly that they overlap
other symbols.
Add logic to truncate symbol size to the end of the corresponding map.
Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: [email protected]
Fixes: d83212d5dd67 ("kallsyms, x86: Export addresses of PTI entry trampolines")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions