perf,mm: Handle non-page-table-aligned hugetlbfs
authorPeter Zijlstra <peterz@infradead.org>
Fri, 9 Oct 2020 09:09:27 +0000 (11:09 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 29 Oct 2020 10:00:39 +0000 (11:00 +0100)
commit51b646b2d9f84d6ff6300e3c1d09f2be4329a424
treea8c9b6bded7c1358f87cbc0f582eb6c653791818
parent995f088efebe1eba0282a6ffa12411b37f8990c2
perf,mm: Handle non-page-table-aligned hugetlbfs

A limited nunmber of architectures support hugetlbfs sizes that do not
align with the page-tables (ARM64, Power, Sparc64). Add support for
this to the generic perf_get_page_size() implementation, and also
allow an architecture to override this implementation.

This latter is only needed when it uses non-page-table aligned huge
pages in its kernel map.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
include/linux/perf_event.h
kernel/events/core.c