On Mon, 2017-10-30 at 11:01:12 UTC, Balbir Singh wrote: > It would be nice to be able to dump page tables in a particular > context. > > eg: dumping vmalloc space: > > 0:mon> dv 0xd00037fffff00000 > pgd @ 0xc0000000017c0000 > pgdp @ 0xc0000000017c00d8 = 0x00000000f10b1000 > pudp @ 0xc0000000f10b13f8 = 0x00000000f10d0000 > pmdp @ 0xc0000000f10d1ff8 = 0x00000000f1102000 > ptep @ 0xc0000000f1102780 = 0xc0000000f1ba018e > Maps physical address = 0x00000000f1ba0000 > Flags = Accessed Dirty Read Write > > This patch does not replicate the complex code of dump_pagetable and > has no support for bolted linear mapping, thats why I've it's called > dump virtual page table support. The format of the PTE can be expanded > even further to add more useful information about the flags in the PTE > if required. > > Signed-off-by: Balbir Singh <bsinghar...@gmail.com> > [mpe: Bike shed the output format, show the pgdir] > Signed-off-by: Michael Ellerman <m...@ellerman.id.au>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/80eff6c484799722736471d15ff9cc cheers