arm64: mm: dump: make page table dumping reusable
authorMark Rutland <mark.rutland@arm.com>
Tue, 31 May 2016 13:49:01 +0000 (14:49 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 21 Jun 2016 14:09:11 +0000 (15:09 +0100)
commit4674fdb9f1493f12a15c5f2158f260060b58953e
treeead420a195ac826635be9b9dd92f19f4be61c3cd
parent0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543
arm64: mm: dump: make page table dumping reusable

For debugging purposes, it would be nice if we could export page tables
other than the swapper_pg_dir to userspace. To enable this, this patch
refactors the arm64 page table dumping code such that multiple tables
may be registered with the framework, and exported under debugfs.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Laura Abbott <labbott@fedoraproject.org>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/ptdump.h [new file with mode: 0644]
arch/arm64/mm/dump.c