ptdump.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) ptdump.c (41b7a347bf1491e7300563bb224432608b41f62a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2016, Rashmica Gupta, IBM Corp.
4 *
5 * This traverses the kernel pagetables and dumps the
6 * information about the used sections of memory to
7 * /sys/kernel/debug/kernel_pagetables.
8 *

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

16#include <linux/io.h>
17#include <linux/mm.h>
18#include <linux/highmem.h>
19#include <linux/ptdump.h>
20#include <linux/sched.h>
21#include <linux/seq_file.h>
22#include <asm/fixmap.h>
23#include <linux/const.h>
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2016, Rashmica Gupta, IBM Corp.
4 *
5 * This traverses the kernel pagetables and dumps the
6 * information about the used sections of memory to
7 * /sys/kernel/debug/kernel_pagetables.
8 *

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

16#include <linux/io.h>
17#include <linux/mm.h>
18#include <linux/highmem.h>
19#include <linux/ptdump.h>
20#include <linux/sched.h>
21#include <linux/seq_file.h>
22#include <asm/fixmap.h>
23#include <linux/const.h>
24#include <linux/kasan.h>
24#include <asm/page.h>
25#include <asm/hugetlb.h>
26
27#include <mm/mmu_decl.h>
28
29#include "ptdump.h"
30
31/*

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

284 address_markers[i++].start_address = ioremap_bot;
285 address_markers[i++].start_address = IOREMAP_TOP;
286#ifdef CONFIG_HIGHMEM
287 address_markers[i++].start_address = PKMAP_BASE;
288 address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP);
289#endif
290 address_markers[i++].start_address = FIXADDR_START;
291 address_markers[i++].start_address = FIXADDR_TOP;
25#include <asm/page.h>
26#include <asm/hugetlb.h>
27
28#include <mm/mmu_decl.h>
29
30#include "ptdump.h"
31
32/*

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

285 address_markers[i++].start_address = ioremap_bot;
286 address_markers[i++].start_address = IOREMAP_TOP;
287#ifdef CONFIG_HIGHMEM
288 address_markers[i++].start_address = PKMAP_BASE;
289 address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP);
290#endif
291 address_markers[i++].start_address = FIXADDR_START;
292 address_markers[i++].start_address = FIXADDR_TOP;
293#endif /* CONFIG_PPC64 */
292#ifdef CONFIG_KASAN
293 address_markers[i++].start_address = KASAN_SHADOW_START;
294 address_markers[i++].start_address = KASAN_SHADOW_END;
295#endif
294#ifdef CONFIG_KASAN
295 address_markers[i++].start_address = KASAN_SHADOW_START;
296 address_markers[i++].start_address = KASAN_SHADOW_END;
297#endif
296#endif /* CONFIG_PPC64 */
297}
298
299static int ptdump_show(struct seq_file *m, void *v)
300{
301 struct pg_state st = {
302 .seq = m,
303 .marker = address_markers,
304 .level = -1,

--- 70 unchanged lines hidden ---
298}
299
300static int ptdump_show(struct seq_file *m, void *v)
301{
302 struct pg_state st = {
303 .seq = m,
304 .marker = address_markers,
305 .level = -1,

--- 70 unchanged lines hidden ---