]> 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)
commitc200ee447bceef892e8e41f6485b892b4a6e54b8
tree6d6f76604f5a50c54e4f1abb2359d4b266d84215
parent0796cc493713f303920110255bf11a3c5c3e7281
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]