OSDN Git Service

perf machine: Synthesize and process mmap events for x86 PTI entry trampolines
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 22 May 2018 10:54:37 +0000 (13:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 May 2018 13:26:39 +0000 (10:26 -0300)
commita8ce99b0ee9ad32debad0a9f28d21451ba237cc1
treeabf59e29e80959c9620ea8ecf88097fc59333375
parent1c5aae7710bb9ecf82a5cc88e35a028a8b385763
perf machine: Synthesize and process mmap events for x86 PTI entry trampolines

Like the kernel text, the location of x86 PTI entry trampolines must be
recorded in the perf.data file. Like the kernel, synthesize a mmap event
for that, and add processing for it.

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-10-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/Build
tools/perf/arch/x86/util/event.c [new file with mode: 0644]
tools/perf/util/event.c
tools/perf/util/event.h
tools/perf/util/machine.c