summaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig.debug
diff options
context:
space:
mode:
authorJinbum Park2017-12-12 01:41:09 +0100
committerRussell King2018-01-21 16:32:17 +0100
commit4fb69cc4566f175839615cc4ef8828ae4d5341d9 (patch)
tree6be5567a61f73980f6dae40869a8cdba1197951d /arch/arm/Kconfig.debug
parentARM: 8734/1: mm: idmap: Mark variables as ro_after_init (diff)
downloadkernel-qcow2-linux-4fb69cc4566f175839615cc4ef8828ae4d5341d9.tar.gz
kernel-qcow2-linux-4fb69cc4566f175839615cc4ef8828ae4d5341d9.tar.xz
kernel-qcow2-linux-4fb69cc4566f175839615cc4ef8828ae4d5341d9.zip
ARM: 8735/1: mm: dump: make page table dumping reusable
This patch refactors the arm page table dumping code, so multiple tables may be registered with the framework. This patch refers below commits of arm64. (4674fdb9f149 ("arm64: mm: dump: make page table dumping reusable")) (4ddb9bf83349 ("arm64: dump: Make ptdump debugfs a separate option")) Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Laura Abbott <labbott@redhat.com> Reviewed-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Jinbum Park <jinb.park7@gmail.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/Kconfig.debug')
-rw-r--r--arch/arm/Kconfig.debug6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 17685e19aed8..e7b94dbae78e 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -3,10 +3,14 @@ menu "Kernel hacking"
source "lib/Kconfig.debug"
-config ARM_PTDUMP
+config ARM_PTDUMP_CORE
+ def_bool n
+
+config ARM_PTDUMP_DEBUGFS
bool "Export kernel pagetable layout to userspace via debugfs"
depends on DEBUG_KERNEL
depends on MMU
+ select ARM_PTDUMP_CORE
select DEBUG_FS
---help---
Say Y here if you want to show the kernel pagetable layout in a