Export kernel pagetable layout to userspace via debugfs

modulename: debug_pagetables.ko

and/or

ptdump_debugfs.ko

configname: CONFIG_PTDUMP_DEBUGFS

Linux Kernel Configuration
└─>Kernel hacking
└─>Memory Debugging
└─>Export kernel pagetable layout to userspace via debugfs
In linux kernel since version 5.1 (release Date: 2019-05-05)  
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: