3 source "lib/Kconfig.debug"
9 config DEBUG_STACK_USAGE
10 bool "Enable stack utilization instrumentation"
11 depends on DEBUG_KERNEL
13 Enables the display of the minimum amount of free stack which each
14 task has ever had available in the sysrq-T output.
17 bool "Filter access to /dev/mem"
20 If this option is disabled, you allow userspace (root) access to all
21 of memory, including kernel and userspace memory. Accidental
22 access to this is obviously disastrous, but specific access can
23 be used by people debugging the kernel.
25 If this option is switched on, the /dev/mem file only allows
26 userspace access to memory mapped peripherals.
31 bool "Early printk support"
34 Say Y here if you want to have an early console using the
35 earlyprintk=<name>[,<addr>][,<options>] kernel parameter. It
36 is assumed that the early console device has been initialised
37 by the boot loader prior to starting the Linux kernel.
39 config PID_IN_CONTEXTIDR
40 bool "Write the current PID to the CONTEXTIDR register"
42 Enabling this option causes the kernel to write the current PID to
43 the CONTEXTIDR register, at the expense of some additional
44 instructions during context switch. Say Y here only if you are
45 planning to use hardware trace tools with this kernel.
47 config DEBUG_SET_MODULE_RONX
48 bool "Set loadable kernel module data as NX and text as RO"
51 This option helps catch unintended modifications to loadable
52 kernel module's text and read-only data. It also prevents execution
53 of module data. Such protection may interfere with run-time code
54 patching and dynamic kernel tracing - and they might also protect
55 against certain classes of kernel exploits.