From: Hailong Liu <liu.hailo...@zte.com.cn>

The current /sys/kernel/debug/kernel_page_tables does not display the
*Linear Mapping start* marker on arm64, which I think should be paired
with the *Linear Mapping start* marker.

Since *Linear Mapping start* is the first marker, use level=-1 to display it.

Signed-off-by: Hailong Liu <liu.hailo...@zte.com.cn>
---
 arch/arm64/mm/ptdump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c
index 04137a8f3d2d..0e050d76b83a 100644
--- a/arch/arm64/mm/ptdump.c
+++ b/arch/arm64/mm/ptdump.c
@@ -324,6 +324,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info 
*info)
        st = (struct pg_state){
                .seq = s,
                .marker = info->markers,
+               .level = -1,
                .ptdump = {
                        .note_page = note_page,
                        .range = (struct ptdump_range[]){
-- 
2.17.1


Reply via email to