Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64/ptdump:display the Linear Mapping start marker

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 end* marker.

Since *Linear Mapping start* is the first marker, use initialise 'level'
to -1 in order to display it.

Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn>
Link: https://lore.kernel.org/r/20210202150749.10104-1-liuhailongg6@163.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Hailong Liu and committed by
Will Deacon
b9ba6809 12fc4288

+1
+1
arch/arm64/mm/ptdump.c
··· 324 324 st = (struct pg_state){ 325 325 .seq = s, 326 326 .marker = info->markers, 327 + .level = -1, 327 328 .ptdump = { 328 329 .note_page = note_page, 329 330 .range = (struct ptdump_range[]){