Merge remote-tracking branch 'lsk/v3.10/topic/cpufreq' into linux-linaro-lsk
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / Kconfig.debug
1 menu "Kernel hacking"
2
3 source "lib/Kconfig.debug"
4
5 config FRAME_POINTER
6         bool
7         default y
8
9 config DEBUG_STACK_USAGE
10         bool "Enable stack utilization instrumentation"
11         depends on DEBUG_KERNEL
12         help
13           Enables the display of the minimum amount of free stack which each
14           task has ever had available in the sysrq-T output.
15
16 config STRICT_DEVMEM
17         bool "Filter access to /dev/mem"
18         depends on MMU
19         help
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.
24
25           If this option is switched on, the /dev/mem file only allows
26           userspace access to memory mapped peripherals.
27
28           If in doubt, say Y.
29
30 config EARLY_PRINTK
31         bool "Early printk support"
32         default y
33         help
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.
38
39 config PID_IN_CONTEXTIDR
40         bool "Write the current PID to the CONTEXTIDR register"
41         help
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.
46
47 config DEBUG_SET_MODULE_RONX
48         bool "Set loadable kernel module data as NX and text as RO"
49         depends on MODULES
50         help
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.
56           If in doubt, say "N".
57
58 endmenu