Skip to content

Commit 602dece

Browse files
labbottAlex Shi
authored andcommitted
arm64: ptdump: Indicate whether memory should be faulting
With CONFIG_DEBUG_PAGEALLOC, pages do not have the valid bit set when free in the buddy allocator. Add an indiciation to the page table dumping code that the valid bit is not set, 'F' for fault, to make this easier to understand. Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Laura Abbott <labbott@fedoraproject.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> (cherry picked from commit d7e9d59494a9a5d83274f5af2148b82ca22dff3f) Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 parent 7d13203 commit 602dece

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

arch/arm64/mm/dump.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ struct prot_bits {
9090

9191
static const struct prot_bits pte_bits[] = {
9292
{
93+
.mask = PTE_VALID,
94+
.val = PTE_VALID,
95+
.set = " ",
96+
.clear = "F",
97+
}, {
9398
.mask = PTE_USER,
9499
.val = PTE_USER,
95100
.set = "USR",

0 commit comments

Comments
 (0)