ARM: 8735/1: mm: dump: make page table dumping reusable
authorJinbum Park <jinb.park7@gmail.com>
Tue, 12 Dec 2017 00:41:09 +0000 (01:41 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 21 Jan 2018 15:32:17 +0000 (15:32 +0000)
commit4fb69cc4566f175839615cc4ef8828ae4d5341d9
tree6be5567a61f73980f6dae40869a8cdba1197951d
parent6fbab054eccd14480d0c0805cab80db08e0fb3ee
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>
arch/arm/Kconfig.debug
arch/arm/include/asm/ptdump.h [new file with mode: 0644]
arch/arm/mm/Makefile
arch/arm/mm/dump.c
arch/arm/mm/ptdump_debugfs.c [new file with mode: 0644]