]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37c505cbf12f775316d6fce8bb5cfb1a038981f6
tree6d6f76604f5a50c54e4f1abb2359d4b266d84215
parenta30a4d101f0831f742d317e03f6ec350a8e31634
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]