mm: add generic ptdump
[linux-2.6-block.git] / mm / Kconfig.debug
index 327b3ebf23bf977563fd347c618b0a6d1a036dd9..0271b22e063f94da89d4d85f335289d1777229c8 100644 (file)
@@ -117,3 +117,24 @@ config DEBUG_RODATA_TEST
     depends on STRICT_KERNEL_RWX
     ---help---
       This option enables a testcase for the setting rodata read-only.
+
+config GENERIC_PTDUMP
+       bool
+
+config PTDUMP_CORE
+       bool
+
+config PTDUMP_DEBUGFS
+       bool "Export kernel pagetable layout to userspace via debugfs"
+       depends on DEBUG_KERNEL
+       depends on DEBUG_FS
+       depends on GENERIC_PTDUMP
+       select PTDUMP_CORE
+       help
+         Say Y here if you want to show the kernel pagetable layout in a
+         debugfs file. This information is only useful for kernel developers
+         who are working in architecture specific areas of the kernel.
+         It is probably not a good idea to enable this feature in a production
+         kernel.
+
+         If in doubt, say N.