powerpc/mm: Dump hash table
authorRashmica Gupta <rashmicy@gmail.com>
Fri, 27 May 2016 05:49:00 +0000 (15:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Nov 2016 06:11:47 +0000 (17:11 +1100)
commit1515ab932156257afd8a5864506dab80f63ff38b
tree6d6f76604f5a50c54e4f1abb2359d4b266d84215
parent8eb07b187000d48152c4ef97f075bdfd82575e8f
powerpc/mm: Dump hash table

Useful to be able to dump the kernel hash page table to check
which pages are hashed along with their sizes and other details.

Add a debugfs file to check the hash page table. If radix is enabled
(and so there is no hash page table) then this file doesn't exist. To
use this the PPC_PTDUMP config option must be selected.

Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
[mpe: Fix build with SPARSEMEM_VMEMMAP=n & PSERIES=n]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/Makefile
arch/powerpc/mm/dump_hashpagetable.c [new file with mode: 0644]