• Anshuman Khandual's avatar
    mm/debug_vm_pgtable/basic: iterate over entire protection_map[] · 2e326c07
    Anshuman Khandual authored
    Currently the basic tests just validate various page table transformations
    after starting with vm_get_page_prot(VM_READ|VM_WRITE|VM_EXEC) protection.
    Instead scan over the entire protection_map[] for better coverage.  It
    also makes sure that all these basic page table tranformations checks hold
    true irrespective of the starting protection value for the page table
    entry.  There is also a slight change in the debug print format for basic
    tests to capture the protection value it is being tested with.  The
    modified output looks something like
    
    [pte_basic_tests          ]: Validating PTE basic ()
    [pte_basic_tests          ]: Validating PTE basic (read)
    [pte_basic_tests          ]: Validating PTE basic (write)
    [pte_basic_tests          ]: Validating PTE basic (read|write)
    [pte_basic_tests          ]: Validating PTE basic (exec)
    [pte_basic_tests          ]: Validating PTE basic (read|exec)
    [pte_basic_tests          ]: Validating PTE basic (write|exe...
    2e326c07
debug_vm_pgtable.c 31.3 KB