summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig.debug
diff options
context:
space:
mode:
authorRashmica Gupta <rashmicy@gmail.com>2016-05-27 07:48:59 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2016-11-17 07:11:46 +0100
commit8eb07b187000d48152c4ef97f075bdfd82575e8f (patch)
tree8611028d0616b147433290c3c70737e8a7c1ba39 /arch/powerpc/Kconfig.debug
parentpowerpc/pseries: Move CMO code from plapr_wrappers.h to platforms/pseries (diff)
downloadlinux-8eb07b187000d48152c4ef97f075bdfd82575e8f.tar.xz
linux-8eb07b187000d48152c4ef97f075bdfd82575e8f.zip
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>
Diffstat (limited to 'arch/powerpc/Kconfig.debug')
-rw-r--r--arch/powerpc/Kconfig.debug12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
index 63292f64b25a..20cf770611ec 100644
--- a/arch/powerpc/Kconfig.debug
+++ b/arch/powerpc/Kconfig.debug
@@ -354,4 +354,16 @@ config FAIL_IOMMU
If you are unsure, say N.
+config PPC_PTDUMP
+ bool "Export kernel pagetable layout to userspace via debugfs"
+ depends on DEBUG_KERNEL
+ select DEBUG_FS
+ help
+ This option exports the state of the kernel pagetables to a
+ debugfs file. This is only useful for kernel developers who are
+ working in architecture specific areas of the kernel - probably
+ not a good idea to enable this feature in a production kernel.
+
+ If you are unsure, say N.
+
endmenu