summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf-sys.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2019-01-09 11:18:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 20:11:37 +0100
commit0f43fd4bdb74714f0ad8b0ee5bd26603b0390adb (patch)
treee7be0c7796b985ddb52c48573fbcc70d4522d628 /tools/perf/perf-sys.h
parent99c7a8ec438752b6a29c0449eb3298233d7243cd (diff)
downloadtalos-obmc-linux-0f43fd4bdb74714f0ad8b0ee5bd26603b0390adb.tar.gz
talos-obmc-linux-0f43fd4bdb74714f0ad8b0ee5bd26603b0390adb.zip
perf tools: Fix split_kallsyms_for_kcore() for trampoline symbols
commit d6d457451eb94fa747dc202765592eb8885a7352 upstream. 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 <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: stable@vger.kernel.org Fixes: d83212d5dd67 ("kallsyms, x86: Export addresses of PTI entry trampolines") Link: http://lkml.kernel.org/r/20190109091835.5570-2-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/perf-sys.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud