Skip to content

Commit

Permalink
arm64: ptdump: Indicate whether memory should be faulting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laura Abbott authored and Catalin Marinas committed Feb 16, 2016
1 parent 83863f2 commit d7e9d59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm64/mm/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d7e9d59

Please sign in to comment.