arm64: ptdump: Indicate whether memory should be faulting
authorLaura Abbott <labbott@fedoraproject.org>
Sat, 6 Feb 2016 00:24:48 +0000 (16:24 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Feb 2016 15:40:44 +0000 (15:40 +0000)
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>
arch/arm64/mm/dump.c

index 0adbebbc28037110afd911a5cfe14693101e19ea..0841b2bf0e6ae8885150949c21188ee032f55913 100644 (file)
@@ -90,6 +90,11 @@ struct prot_bits {
 
 static const struct prot_bits pte_bits[] = {
        {
+               .mask   = PTE_VALID,
+               .val    = PTE_VALID,
+               .set    = " ",
+               .clear  = "F",
+       }, {
                .mask   = PTE_USER,
                .val    = PTE_USER,
                .set    = "USR",
This page took 0.025104 seconds and 5 git commands to generate.