File tree Expand file tree Collapse file tree 4 files changed +70
-247
lines changed Expand file tree Collapse file tree 4 files changed +70
-247
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ config X86
120120 select GENERIC_IRQ_RESERVATION_MODE
121121 select GENERIC_IRQ_SHOW
122122 select GENERIC_PENDING_IRQ if SMP
123+ select GENERIC_PTDUMP
123124 select GENERIC_SMP_IDLE_THREAD
124125 select GENERIC_STRNCPY_FROM_USER
125126 select GENERIC_STRNLEN_USER
Original file line number Diff line number Diff line change @@ -62,26 +62,10 @@ config EARLY_PRINTK_USB_XDBC
6262config MCSAFE_TEST
6363 def_bool n
6464
65- config X86_PTDUMP_CORE
66- def_bool n
67-
68- config X86_PTDUMP
69- tristate "Export kernel pagetable layout to userspace via debugfs"
70- depends on DEBUG_KERNEL
71- select DEBUG_FS
72- select X86_PTDUMP_CORE
73- ---help---
74- Say Y here if you want to show the kernel pagetable layout in a
75- debugfs file. This information is only useful for kernel developers
76- who are working in architecture specific areas of the kernel.
77- It is probably not a good idea to enable this feature in a production
78- kernel.
79- If in doubt, say "N"
80-
8165config EFI_PGT_DUMP
8266 bool "Dump the EFI pagetable"
8367 depends on EFI
84- select X86_PTDUMP_CORE
68+ select PTDUMP_CORE
8569 ---help---
8670 Enable this if you want to dump the EFI page table before
8771 enabling virtual mode. This can be used to debug miscellaneous
@@ -90,7 +74,7 @@ config EFI_PGT_DUMP
9074
9175config DEBUG_WX
9276 bool "Warn on W+X mappings at boot"
93- select X86_PTDUMP_CORE
77+ select PTDUMP_CORE
9478 ---help---
9579 Generate a warning if any W+X mappings are found at boot.
9680
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ CFLAGS_fault.o := -I $(srctree)/$(src)/../include/asm/trace
2828obj-$(CONFIG_X86_32) += pgtable_32.o iomap_32.o
2929
3030obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
31- obj-$(CONFIG_X86_PTDUMP_CORE ) += dump_pagetables.o
32- obj-$(CONFIG_X86_PTDUMP ) += debug_pagetables.o
31+ obj-$(CONFIG_PTDUMP_CORE ) += dump_pagetables.o
32+ obj-$(CONFIG_PTDUMP_DEBUGFS ) += debug_pagetables.o
3333
3434obj-$(CONFIG_HIGHMEM) += highmem_32.o
3535
You can’t perform that action at this time.
0 commit comments