xref: /linux/arch/arm64/Kconfig.debug (revision f7018c21350204c4cf628462f229d44d03545254)
1menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config FRAME_POINTER
6	bool
7	default y
8
9config STRICT_DEVMEM
10	bool "Filter access to /dev/mem"
11	depends on MMU
12	help
13	  If this option is disabled, you allow userspace (root) access to all
14	  of memory, including kernel and userspace memory. Accidental
15	  access to this is obviously disastrous, but specific access can
16	  be used by people debugging the kernel.
17
18	  If this option is switched on, the /dev/mem file only allows
19	  userspace access to memory mapped peripherals.
20
21	  If in doubt, say Y.
22
23config EARLY_PRINTK
24	bool "Early printk support"
25	default y
26	help
27	  Say Y here if you want to have an early console using the
28	  earlyprintk=<name>[,<addr>][,<options>] kernel parameter. It
29	  is assumed that the early console device has been initialised
30	  by the boot loader prior to starting the Linux kernel.
31
32config PID_IN_CONTEXTIDR
33	bool "Write the current PID to the CONTEXTIDR register"
34	help
35	  Enabling this option causes the kernel to write the current PID to
36	  the CONTEXTIDR register, at the expense of some additional
37	  instructions during context switch. Say Y here only if you are
38	  planning to use hardware trace tools with this kernel.
39
40endmenu
41