mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 11:34:58 +00:00
In a similar manner to arm64, x86, powerpc, etc., it can traverse all page tables, and dump the page table layout with the memory types and permissions. Add a debugfs file at /sys/kernel/debug/kernel_page_tables to export the page table layout to userspace. Signed-off-by: Zong Li <[email protected]> Tested-by: Alexandre Ghiti <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
12 lines
195 B
C
12 lines
195 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2019 SiFive
|
|
*/
|
|
|
|
#ifndef _ASM_RISCV_PTDUMP_H
|
|
#define _ASM_RISCV_PTDUMP_H
|
|
|
|
void ptdump_check_wx(void);
|
|
|
|
#endif /* _ASM_RISCV_PTDUMP_H */
|