Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/ptdump: Fix walk_vmemmap() to also print first vmemmap entry

Currently walk_vmemmap() skips the first vmemmap entry pointed to by
vmemmap_list pointer itself. Fix that.

With the fix applied the vmemmap entry at 0xc00c000000000000 for hash is
displayed:

$ cat /sys/kernel/debug/kernel_hash_pagetable
...
0xc00c000000010000: AVPN:cd7bd4e0000 ssize: 1T ...
0xc00c000000000000: AVPN:cd7bd4e0000 ssize: 1T ...

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
[mpe: Tweak change log wording and add example output]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/a19ee3dc2b304d39da364a592d5cd167449f8c4a.1713365940.git.ritesh.list@gmail.com

authored by

Ritesh Harjani (IBM) and committed by
Michael Ellerman
f318c8be 0db880fc

+1 -1
+1 -1
arch/powerpc/mm/ptdump/hashpagetable.c
··· 491 491 * Traverse the vmemmaped memory and dump pages that are in the hash 492 492 * pagetable. 493 493 */ 494 - while (ptr->list) { 494 + while (ptr) { 495 495 hpte_find(st, ptr->virt_addr, mmu_vmemmap_psize); 496 496 ptr = ptr->list; 497 497 }