powerpc/mm: Dump linux pagetables
authorRashmica Gupta <rashmicy@gmail.com>
Fri, 27 May 2016 05:48:59 +0000 (15:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Nov 2016 06:11:46 +0000 (17:11 +1100)
commit8eb07b187000d48152c4ef97f075bdfd82575e8f
tree8611028d0616b147433290c3c70737e8a7c1ba39
parent8f272a5dd6826f14e47110eccd37b6782bf74901
powerpc/mm: Dump linux pagetables

Useful to be able to dump the kernels page tables to check permissions
and memory types - derived from arm64's implementation.

Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
config option must be selected.

Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig.debug
arch/powerpc/mm/Makefile
arch/powerpc/mm/dump_linuxpagetables.c [new file with mode: 0644]