diff options
author | Laura Abbott <labbott@fedoraproject.org> | 2016-02-05 16:24:48 -0800 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-02-16 15:40:44 +0000 |
commit | d7e9d59494a9a5d83274f5af2148b82ca22dff3f (patch) | |
tree | aec6ce963b0ec0f26de569d6232b5c02d68b9cfe /arch | |
parent | 83863f25e4b8214e994ef8b5647aad614d74b45d (diff) | |
download | linux-stable-d7e9d59494a9a5d83274f5af2148b82ca22dff3f.tar.gz linux-stable-d7e9d59494a9a5d83274f5af2148b82ca22dff3f.tar.bz2 linux-stable-d7e9d59494a9a5d83274f5af2148b82ca22dff3f.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/mm/dump.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 0adbebbc2803..0841b2bf0e6a 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -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", |