summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorHailong Liu <liu.hailong6@zte.com.cn>2021-02-02 16:07:49 +0100
committerWill Deacon <will@kernel.org>2021-02-02 22:12:35 +0100
commitb9ba680969d1016888fed4e03d8ecb4b97726f34 (patch)
treee643ff3288172fe103f0bfe0c7f3d660ea142df7 /arch/arm64
parentarm64: ptrace: Fix missing return in hw breakpoint code (diff)
downloadlinux-b9ba680969d1016888fed4e03d8ecb4b97726f34.tar.xz
linux-b9ba680969d1016888fed4e03d8ecb4b97726f34.zip
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>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/mm/ptdump.c1
1 files changed, 1 insertions, 0 deletions
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[]){