perf machine: Fix map_groups__split_kallsyms() for entry trampoline symbols
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 22 May 2018 10:54:34 +0000 (13:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 May 2018 13:55:59 +0000 (10:55 -0300)
commit4d004365e25251002935fc3843d80934248ad3ed
tree26574a089d21977209ba4983cbae27cea5e8a042
parent4d99e4136580d178e3523281a820be17bf814bf8
perf machine: Fix map_groups__split_kallsyms() for entry trampoline symbols

When kernel symbols are derived from /proc/kallsyms only (not using
vmlinux or /proc/kcore) map_groups__split_kallsyms() is used. However
that function makes assumptions that are not true with entry trampoline
symbols. For now, remove the entry trampoline symbols at that point, as
they are no longer needed at that point.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/1526986485-6562-7-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.h
tools/perf/util/symbol.c