summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2020-03-12 03:58:35 +0100
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-03-26 17:29:49 +0100
commit59c4da8640ccf4721d54d36835706f3eefb521a4 (patch)
tree598f0449ad9a5643de09202de7b9268f72e33f55 /arch/riscv/Kconfig
parentriscv: patch code by fixmap mapping (diff)
downloadlinux-59c4da8640ccf4721d54d36835706f3eefb521a4.tar.xz
linux-59c4da8640ccf4721d54d36835706f3eefb521a4.zip
riscv: Add support to dump the kernel page tables
In a similar manner to arm64, x86, powerpc, etc., it can traverse all page tables, and dump the page table layout with the memory types and permissions. Add a debugfs file at /sys/kernel/debug/kernel_page_tables to export the page table layout to userspace. Signed-off-by: Zong Li <zong.li@sifive.com> Tested-by: Alexandre Ghiti <alex@ghiti.fr> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index dfc9c3ea9f7d..b2764a0a0c8c 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -29,6 +29,7 @@ config RISCV
select GENERIC_SMP_IDLE_THREAD
select GENERIC_ATOMIC64 if !64BIT
select GENERIC_IOREMAP
+ select GENERIC_PTDUMP if MMU
select HAVE_ARCH_AUDITSYSCALL
select HAVE_ARCH_SECCOMP_FILTER
select HAVE_ASM_MODVERSIONS