Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014, The Linux Foundation. All rights reserved. |
| 3 | * Debug helper to dump the current kernel pagetables of the system |
| 4 | * so that we can see what the various memory ranges are set to. |
| 5 | * |
| 6 | * Derived from x86 and arm implementation: |
| 7 | * (C) Copyright 2008 Intel Corporation |
| 8 | * |
| 9 | * Author: Arjan van de Ven <arjan@linux.intel.com> |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License |
| 13 | * as published by the Free Software Foundation; version 2 |
| 14 | * of the License. |
| 15 | */ |
| 16 | #include <linux/debugfs.h> |
Mark Rutland | 764011c | 2015-01-22 18:20:36 +0000 | [diff] [blame] | 17 | #include <linux/errno.h> |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 18 | #include <linux/fs.h> |
Mark Brown | 284be28 | 2015-01-22 20:52:10 +0000 | [diff] [blame] | 19 | #include <linux/io.h> |
Mark Rutland | 764011c | 2015-01-22 18:20:36 +0000 | [diff] [blame] | 20 | #include <linux/init.h> |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 21 | #include <linux/mm.h> |
| 22 | #include <linux/sched.h> |
| 23 | #include <linux/seq_file.h> |
| 24 | |
| 25 | #include <asm/fixmap.h> |
Ard Biesheuvel | d8fc68a | 2016-04-22 18:48:04 +0200 | [diff] [blame] | 26 | #include <asm/kasan.h> |
Mark Rutland | 764011c | 2015-01-22 18:20:36 +0000 | [diff] [blame] | 27 | #include <asm/memory.h> |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 28 | #include <asm/pgtable.h> |
Mark Rutland | 764011c | 2015-01-22 18:20:36 +0000 | [diff] [blame] | 29 | #include <asm/pgtable-hwdef.h> |
Mark Rutland | 4674fdb | 2016-05-31 14:49:01 +0100 | [diff] [blame] | 30 | #include <asm/ptdump.h> |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 31 | |
Ard Biesheuvel | c8f8cca4 | 2016-04-22 18:48:03 +0200 | [diff] [blame] | 32 | static const struct addr_marker address_markers[] = { |
Ard Biesheuvel | d8fc68a | 2016-04-22 18:48:04 +0200 | [diff] [blame] | 33 | #ifdef CONFIG_KASAN |
| 34 | { KASAN_SHADOW_START, "Kasan shadow start" }, |
| 35 | { KASAN_SHADOW_END, "Kasan shadow end" }, |
| 36 | #endif |
Ard Biesheuvel | c8f8cca4 | 2016-04-22 18:48:03 +0200 | [diff] [blame] | 37 | { MODULES_VADDR, "Modules start" }, |
| 38 | { MODULES_END, "Modules end" }, |
| 39 | { VMALLOC_START, "vmalloc() Area" }, |
| 40 | { VMALLOC_END, "vmalloc() End" }, |
| 41 | { FIXADDR_START, "Fixmap start" }, |
| 42 | { FIXADDR_TOP, "Fixmap end" }, |
| 43 | { PCI_IO_START, "PCI I/O start" }, |
| 44 | { PCI_IO_END, "PCI I/O end" }, |
Ard Biesheuvel | 3e1907d | 2016-03-30 16:46:00 +0200 | [diff] [blame] | 45 | #ifdef CONFIG_SPARSEMEM_VMEMMAP |
Ard Biesheuvel | c8f8cca4 | 2016-04-22 18:48:03 +0200 | [diff] [blame] | 46 | { VMEMMAP_START, "vmemmap start" }, |
| 47 | { VMEMMAP_START + VMEMMAP_SIZE, "vmemmap end" }, |
Ard Biesheuvel | 3e1907d | 2016-03-30 16:46:00 +0200 | [diff] [blame] | 48 | #endif |
Ard Biesheuvel | c8f8cca4 | 2016-04-22 18:48:03 +0200 | [diff] [blame] | 49 | { PAGE_OFFSET, "Linear Mapping" }, |
| 50 | { -1, NULL }, |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 51 | }; |
| 52 | |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 53 | #define pt_dump_seq_printf(m, fmt, args...) \ |
| 54 | ({ \ |
| 55 | if (m) \ |
| 56 | seq_printf(m, fmt, ##args); \ |
| 57 | }) |
| 58 | |
| 59 | #define pt_dump_seq_puts(m, fmt) \ |
| 60 | ({ \ |
| 61 | if (m) \ |
| 62 | seq_printf(m, fmt); \ |
| 63 | }) |
| 64 | |
Jeremy Linton | 202e41a1 | 2015-10-07 12:00:23 -0500 | [diff] [blame] | 65 | /* |
| 66 | * The page dumper groups page table entries of the same type into a single |
| 67 | * description. It uses pg_state to track the range information while |
| 68 | * iterating over the pte entries. When the continuity is broken it then |
| 69 | * dumps out a description of the range. |
| 70 | */ |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 71 | struct pg_state { |
| 72 | struct seq_file *seq; |
| 73 | const struct addr_marker *marker; |
| 74 | unsigned long start_address; |
| 75 | unsigned level; |
| 76 | u64 current_prot; |
| 77 | }; |
| 78 | |
| 79 | struct prot_bits { |
| 80 | u64 mask; |
| 81 | u64 val; |
| 82 | const char *set; |
| 83 | const char *clear; |
| 84 | }; |
| 85 | |
| 86 | static const struct prot_bits pte_bits[] = { |
| 87 | { |
Laura Abbott | d7e9d59 | 2016-02-05 16:24:48 -0800 | [diff] [blame] | 88 | .mask = PTE_VALID, |
| 89 | .val = PTE_VALID, |
| 90 | .set = " ", |
| 91 | .clear = "F", |
| 92 | }, { |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 93 | .mask = PTE_USER, |
| 94 | .val = PTE_USER, |
| 95 | .set = "USR", |
| 96 | .clear = " ", |
| 97 | }, { |
| 98 | .mask = PTE_RDONLY, |
| 99 | .val = PTE_RDONLY, |
| 100 | .set = "ro", |
| 101 | .clear = "RW", |
| 102 | }, { |
| 103 | .mask = PTE_PXN, |
| 104 | .val = PTE_PXN, |
| 105 | .set = "NX", |
| 106 | .clear = "x ", |
| 107 | }, { |
| 108 | .mask = PTE_SHARED, |
| 109 | .val = PTE_SHARED, |
| 110 | .set = "SHD", |
| 111 | .clear = " ", |
| 112 | }, { |
| 113 | .mask = PTE_AF, |
| 114 | .val = PTE_AF, |
| 115 | .set = "AF", |
| 116 | .clear = " ", |
| 117 | }, { |
| 118 | .mask = PTE_NG, |
| 119 | .val = PTE_NG, |
| 120 | .set = "NG", |
| 121 | .clear = " ", |
| 122 | }, { |
Jeremy Linton | 202e41a1 | 2015-10-07 12:00:23 -0500 | [diff] [blame] | 123 | .mask = PTE_CONT, |
| 124 | .val = PTE_CONT, |
| 125 | .set = "CON", |
| 126 | .clear = " ", |
| 127 | }, { |
| 128 | .mask = PTE_TABLE_BIT, |
| 129 | .val = PTE_TABLE_BIT, |
| 130 | .set = " ", |
| 131 | .clear = "BLK", |
| 132 | }, { |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 133 | .mask = PTE_UXN, |
| 134 | .val = PTE_UXN, |
| 135 | .set = "UXN", |
| 136 | }, { |
| 137 | .mask = PTE_ATTRINDX_MASK, |
| 138 | .val = PTE_ATTRINDX(MT_DEVICE_nGnRnE), |
| 139 | .set = "DEVICE/nGnRnE", |
| 140 | }, { |
| 141 | .mask = PTE_ATTRINDX_MASK, |
| 142 | .val = PTE_ATTRINDX(MT_DEVICE_nGnRE), |
| 143 | .set = "DEVICE/nGnRE", |
| 144 | }, { |
| 145 | .mask = PTE_ATTRINDX_MASK, |
| 146 | .val = PTE_ATTRINDX(MT_DEVICE_GRE), |
| 147 | .set = "DEVICE/GRE", |
| 148 | }, { |
| 149 | .mask = PTE_ATTRINDX_MASK, |
| 150 | .val = PTE_ATTRINDX(MT_NORMAL_NC), |
| 151 | .set = "MEM/NORMAL-NC", |
| 152 | }, { |
| 153 | .mask = PTE_ATTRINDX_MASK, |
| 154 | .val = PTE_ATTRINDX(MT_NORMAL), |
| 155 | .set = "MEM/NORMAL", |
| 156 | } |
| 157 | }; |
| 158 | |
| 159 | struct pg_level { |
| 160 | const struct prot_bits *bits; |
Mark Rutland | 48dd73c | 2016-05-31 14:49:02 +0100 | [diff] [blame] | 161 | const char *name; |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 162 | size_t num; |
| 163 | u64 mask; |
| 164 | }; |
| 165 | |
| 166 | static struct pg_level pg_level[] = { |
| 167 | { |
| 168 | }, { /* pgd */ |
Mark Rutland | 48dd73c | 2016-05-31 14:49:02 +0100 | [diff] [blame] | 169 | .name = "PGD", |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 170 | .bits = pte_bits, |
| 171 | .num = ARRAY_SIZE(pte_bits), |
| 172 | }, { /* pud */ |
Mark Rutland | 48dd73c | 2016-05-31 14:49:02 +0100 | [diff] [blame] | 173 | .name = (CONFIG_PGTABLE_LEVELS > 3) ? "PUD" : "PGD", |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 174 | .bits = pte_bits, |
| 175 | .num = ARRAY_SIZE(pte_bits), |
| 176 | }, { /* pmd */ |
Mark Rutland | 48dd73c | 2016-05-31 14:49:02 +0100 | [diff] [blame] | 177 | .name = (CONFIG_PGTABLE_LEVELS > 2) ? "PMD" : "PGD", |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 178 | .bits = pte_bits, |
| 179 | .num = ARRAY_SIZE(pte_bits), |
| 180 | }, { /* pte */ |
Mark Rutland | 48dd73c | 2016-05-31 14:49:02 +0100 | [diff] [blame] | 181 | .name = "PTE", |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 182 | .bits = pte_bits, |
| 183 | .num = ARRAY_SIZE(pte_bits), |
| 184 | }, |
| 185 | }; |
| 186 | |
| 187 | static void dump_prot(struct pg_state *st, const struct prot_bits *bits, |
| 188 | size_t num) |
| 189 | { |
| 190 | unsigned i; |
| 191 | |
| 192 | for (i = 0; i < num; i++, bits++) { |
| 193 | const char *s; |
| 194 | |
| 195 | if ((st->current_prot & bits->mask) == bits->val) |
| 196 | s = bits->set; |
| 197 | else |
| 198 | s = bits->clear; |
| 199 | |
| 200 | if (s) |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 201 | pt_dump_seq_printf(st->seq, " %s", s); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 202 | } |
| 203 | } |
| 204 | |
| 205 | static void note_page(struct pg_state *st, unsigned long addr, unsigned level, |
| 206 | u64 val) |
| 207 | { |
| 208 | static const char units[] = "KMGTPE"; |
| 209 | u64 prot = val & pg_level[level].mask; |
| 210 | |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 211 | if (!st->level) { |
| 212 | st->level = level; |
| 213 | st->current_prot = prot; |
| 214 | st->start_address = addr; |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 215 | pt_dump_seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 216 | } else if (prot != st->current_prot || level != st->level || |
| 217 | addr >= st->marker[1].start_address) { |
| 218 | const char *unit = units; |
| 219 | unsigned long delta; |
| 220 | |
| 221 | if (st->current_prot) { |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 222 | pt_dump_seq_printf(st->seq, "0x%016lx-0x%016lx ", |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 223 | st->start_address, addr); |
| 224 | |
| 225 | delta = (addr - st->start_address) >> 10; |
| 226 | while (!(delta & 1023) && unit[1]) { |
| 227 | delta >>= 10; |
| 228 | unit++; |
| 229 | } |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 230 | pt_dump_seq_printf(st->seq, "%9lu%c %s", delta, *unit, |
Mark Rutland | 48dd73c | 2016-05-31 14:49:02 +0100 | [diff] [blame] | 231 | pg_level[st->level].name); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 232 | if (pg_level[st->level].bits) |
| 233 | dump_prot(st, pg_level[st->level].bits, |
| 234 | pg_level[st->level].num); |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 235 | pt_dump_seq_puts(st->seq, "\n"); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | if (addr >= st->marker[1].start_address) { |
| 239 | st->marker++; |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 240 | pt_dump_seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | st->start_address = addr; |
| 244 | st->current_prot = prot; |
| 245 | st->level = level; |
| 246 | } |
| 247 | |
| 248 | if (addr >= st->marker[1].start_address) { |
| 249 | st->marker++; |
Laura Abbott | ae5d1cf | 2016-10-27 09:27:32 -0700 | [diff] [blame^] | 250 | pt_dump_seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 251 | } |
| 252 | |
| 253 | } |
| 254 | |
| 255 | static void walk_pte(struct pg_state *st, pmd_t *pmd, unsigned long start) |
| 256 | { |
Catalin Marinas | a93a4d6 | 2014-12-05 12:34:54 +0000 | [diff] [blame] | 257 | pte_t *pte = pte_offset_kernel(pmd, 0UL); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 258 | unsigned long addr; |
| 259 | unsigned i; |
| 260 | |
| 261 | for (i = 0; i < PTRS_PER_PTE; i++, pte++) { |
| 262 | addr = start + i * PAGE_SIZE; |
| 263 | note_page(st, addr, 4, pte_val(*pte)); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start) |
| 268 | { |
Catalin Marinas | a93a4d6 | 2014-12-05 12:34:54 +0000 | [diff] [blame] | 269 | pmd_t *pmd = pmd_offset(pud, 0UL); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 270 | unsigned long addr; |
| 271 | unsigned i; |
| 272 | |
| 273 | for (i = 0; i < PTRS_PER_PMD; i++, pmd++) { |
| 274 | addr = start + i * PMD_SIZE; |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 275 | if (pmd_none(*pmd) || pmd_sect(*pmd)) { |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 276 | note_page(st, addr, 3, pmd_val(*pmd)); |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 277 | } else { |
| 278 | BUG_ON(pmd_bad(*pmd)); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 279 | walk_pte(st, pmd, addr); |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 280 | } |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 281 | } |
| 282 | } |
| 283 | |
| 284 | static void walk_pud(struct pg_state *st, pgd_t *pgd, unsigned long start) |
| 285 | { |
Catalin Marinas | a93a4d6 | 2014-12-05 12:34:54 +0000 | [diff] [blame] | 286 | pud_t *pud = pud_offset(pgd, 0UL); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 287 | unsigned long addr; |
| 288 | unsigned i; |
| 289 | |
| 290 | for (i = 0; i < PTRS_PER_PUD; i++, pud++) { |
| 291 | addr = start + i * PUD_SIZE; |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 292 | if (pud_none(*pud) || pud_sect(*pud)) { |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 293 | note_page(st, addr, 2, pud_val(*pud)); |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 294 | } else { |
| 295 | BUG_ON(pud_bad(*pud)); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 296 | walk_pmd(st, pud, addr); |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 297 | } |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 298 | } |
| 299 | } |
| 300 | |
Mark Rutland | 4674fdb | 2016-05-31 14:49:01 +0100 | [diff] [blame] | 301 | static void walk_pgd(struct pg_state *st, struct mm_struct *mm, |
| 302 | unsigned long start) |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 303 | { |
Mark Rutland | 35545f0c | 2014-12-05 12:34:54 +0000 | [diff] [blame] | 304 | pgd_t *pgd = pgd_offset(mm, 0UL); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 305 | unsigned i; |
| 306 | unsigned long addr; |
| 307 | |
| 308 | for (i = 0; i < PTRS_PER_PGD; i++, pgd++) { |
| 309 | addr = start + i * PGDIR_SIZE; |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 310 | if (pgd_none(*pgd)) { |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 311 | note_page(st, addr, 1, pgd_val(*pgd)); |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 312 | } else { |
| 313 | BUG_ON(pgd_bad(*pgd)); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 314 | walk_pud(st, pgd, addr); |
Mark Rutland | a1c7657 | 2015-01-27 16:36:30 +0000 | [diff] [blame] | 315 | } |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 316 | } |
| 317 | } |
| 318 | |
Laura Abbott | 4ddb9bf | 2016-10-27 09:27:31 -0700 | [diff] [blame] | 319 | void ptdump_walk_pgd(struct seq_file *m, struct ptdump_info *info) |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 320 | { |
| 321 | struct pg_state st = { |
| 322 | .seq = m, |
Mark Rutland | 4674fdb | 2016-05-31 14:49:01 +0100 | [diff] [blame] | 323 | .marker = info->markers, |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 324 | }; |
| 325 | |
Mark Rutland | 4674fdb | 2016-05-31 14:49:01 +0100 | [diff] [blame] | 326 | walk_pgd(&st, info->mm, info->base_addr); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 327 | |
| 328 | note_page(&st, 0, 0, 0); |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 329 | } |
| 330 | |
Laura Abbott | 4ddb9bf | 2016-10-27 09:27:31 -0700 | [diff] [blame] | 331 | static void ptdump_initialize(void) |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 332 | { |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 333 | unsigned i, j; |
| 334 | |
| 335 | for (i = 0; i < ARRAY_SIZE(pg_level); i++) |
| 336 | if (pg_level[i].bits) |
| 337 | for (j = 0; j < pg_level[i].num; j++) |
| 338 | pg_level[i].mask |= pg_level[i].bits[j].mask; |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 339 | } |
Mark Rutland | 4674fdb | 2016-05-31 14:49:01 +0100 | [diff] [blame] | 340 | |
| 341 | static struct ptdump_info kernel_ptdump_info = { |
| 342 | .mm = &init_mm, |
| 343 | .markers = address_markers, |
| 344 | .base_addr = VA_START, |
| 345 | }; |
| 346 | |
| 347 | static int ptdump_init(void) |
| 348 | { |
Laura Abbott | 4ddb9bf | 2016-10-27 09:27:31 -0700 | [diff] [blame] | 349 | ptdump_initialize(); |
| 350 | return ptdump_debugfs_register(&kernel_ptdump_info, |
| 351 | "kernel_page_tables"); |
Mark Rutland | 4674fdb | 2016-05-31 14:49:01 +0100 | [diff] [blame] | 352 | } |
Laura Abbott | c9465b4 | 2014-11-26 00:28:39 +0000 | [diff] [blame] | 353 | device_initcall(ptdump_init); |