Export kernel pagetable layout to userspace via debugfs

modulename: debug_pagetables.ko

and/or

dump_pagetables.ko

configname: CONFIG_X86_PTDUMP

Linux Kernel Configuration
└─>Kernel hacking
└─>Export kernel pagetable layout to userspace via debugfs
In linux kernel since version 2.6.26 (release Date: 2008-07-13)  
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"

source code: