Skip to content

Commit

Permalink
powerpc/mm: Dump hash table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rashmica Gupta authored and Michael Ellerman committed Nov 17, 2016
1 parent 8eb07b1 commit 1515ab9
Show file tree
Hide file tree
Showing 2 changed files with 553 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o
obj-$(CONFIG_HIGHMEM) += highmem.o
obj-$(CONFIG_PPC_COPRO_BASE) += copro_fault.o
obj-$(CONFIG_SPAPR_TCE_IOMMU) += mmu_context_iommu.o
obj-$(CONFIG_PPC_PTDUMP) += dump_linuxpagetables.o
obj-$(CONFIG_PPC_PTDUMP) += dump_linuxpagetables.o \
dump_hashpagetable.o
Loading

0 comments on commit 1515ab9

Please sign in to comment.