dump.c (552c69b36ebd966186573b9c7a286b390935cce1) dump.c (db0487abd641db12a74a413067519a741e01dc57)
1/*
2 * Debug helper to dump the current kernel pagetables of the system
3 * so that we can see what the various memory ranges are set to.
4 *
5 * Derived from x86 implementation:
6 * (C) Copyright 2008 Intel Corporation
7 *
8 * Author: Arjan van de Ven <arjan@linux.intel.com>

--- 436 unchanged lines hidden (view full) ---

445 st.wx_pages);
446 else
447 pr_info("Checked W+X mappings: passed, no W+X pages found\n");
448}
449
450static int ptdump_init(void)
451{
452 ptdump_initialize();
1/*
2 * Debug helper to dump the current kernel pagetables of the system
3 * so that we can see what the various memory ranges are set to.
4 *
5 * Derived from x86 implementation:
6 * (C) Copyright 2008 Intel Corporation
7 *
8 * Author: Arjan van de Ven <arjan@linux.intel.com>

--- 436 unchanged lines hidden (view full) ---

445 st.wx_pages);
446 else
447 pr_info("Checked W+X mappings: passed, no W+X pages found\n");
448}
449
450static int ptdump_init(void)
451{
452 ptdump_initialize();
453 return ptdump_debugfs_register(&kernel_ptdump_info,
454 "kernel_page_tables");
453 ptdump_debugfs_register(&kernel_ptdump_info, "kernel_page_tables");
454 return 0;
455}
456__initcall(ptdump_init);
455}
456__initcall(ptdump_init);