perf/x86/intel: Support PERF_SAMPLE_DATA_PAGE_SIZE
authorKan Liang <kan.liang@linux.intel.com>
Thu, 1 Oct 2020 13:57:47 +0000 (06:57 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 29 Oct 2020 10:00:38 +0000 (11:00 +0100)
commit76a5433f95f32d8a17c9f836be2084ed947c466b
tree1bde6b36b906a38c63e7a4229289f458f8e266af
parent8d97e71811aaafe4abf611dc24822fd6e73df1a1
perf/x86/intel: Support PERF_SAMPLE_DATA_PAGE_SIZE

The new sample type, PERF_SAMPLE_DATA_PAGE_SIZE, requires the virtual
address. Update the data->addr if the sample type is set.

The large PEBS is disabled with the sample type, because perf doesn't
support munmap tracking yet. The PEBS buffer for large PEBS cannot be
flushed for each munmap. Wrong page size may be calculated. The large
PEBS can be enabled later separately when munmap tracking is supported.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201001135749.2804-3-kan.liang@linux.intel.com
arch/x86/events/intel/ds.c