Root/target/linux/ubicom32/files/arch/ubicom32/Kconfig.debug

1menu "Kernel hacking"
2
3config TRACE_IRQFLAGS_SUPPORT
4    def_bool y
5
6config DEBUG_VERBOSE
7        bool "Verbose fault messages"
8        default y
9        select PRINTK
10        help
11          When a program crashes due to an exception, or the kernel detects
12          an internal error, the kernel can print a not so brief message
13          explaining what the problem was. This debugging information is
14          useful to developers and kernel hackers when tracking down problems,
15          but mostly meaningless to other people. This is always helpful for
16          debugging but serves no purpose on a production system.
17          Most people should say N here.
18
19config PROTECT_KERNEL
20    default y
21    bool 'Enable Kernel range register Protection'
22    help
23      Adds code to enable/disable range registers to protect static
24      kernel code/data from userspace. Currently the ranges covered
25      do no protect kernel loadable modules or dynamically allocated
26      kernel data.
27
28config NO_KERNEL_MSG
29    bool "Suppress Kernel BUG Messages"
30    help
31      Do not output any debug BUG messages within the kernel.
32
33config EARLY_PRINTK
34    bool "Use the driver that you selected as console also for early printk (to debug kernel bootup)."
35    default n
36    help
37      If you want to use the serdes driver (console=ttyUS0) for
38      early printk, you must also supply an additional kernel boot
39      parameter like this:
40
41        serdes=ioportaddr,irq,clockrate,baud
42
43      For an IP7160RGW eval board, you could use this:
44
45        serdes=0x2004000,61,250000000,57600
46
47      which will let you see early printk output at 57600 baud.
48
49config STOP_ON_TRAP
50    bool "Enable stopping at the LDSR for all traps"
51    default n
52    help
53    Cause the LDSR to stop all threads whenever a trap is about to be serviced
54
55config STOP_ON_BUG
56    bool "Enable stopping on failed BUG_ON()"
57    default n
58    help
59    Cause all BUG_ON failures to stop all threads
60
61config DEBUG_IRQMEASURE
62    bool "Enable IRQ handler measurements"
63    default n
64    help
65    When enabled each IRQ's min/avg/max times will be printed. If the handler
66    re-enables interrupt, the times will show the full time including to service
67    nested interrupts. See /proc/irq_measurements.
68
69config DEBUG_PCIMEASURE
70    bool "Enable PCI transaction measurements"
71    default n
72    help
73    When enabled the system will measure the min/avg/max timer for each PCI transactions.
74    See /proc/pci_measurements.
75
76config ACCESS_OK_CHECKS_ENABLED
77    bool "Enable user space access checks"
78    default n
79    help
80    Enabling this check causes the kernel to verify that addresses passed
81    to the kernel by the user space code are within the processes
82    address space. On a no-mmu system, this is done by examining the
83    processes memory data structures (adversly affecting performance) but
84    ensuring that a process does not ask the kernel to violate another
85    processes address space. Sadly, the kernel uses access_ok() for
86    address that are in the kernel which results in a large volume of
87    false positives.
88
89choice
90    prompt "Unaligned Access Support"
91    default UNALIGNED_ACCESS_ENABLED
92    help
93        Kernel / Userspace unaligned access handling.
94
95config UNALIGNED_ACCESS_ENABLED
96    bool "Kernel and Userspace"
97    help
98
99config UNALIGNED_ACCESS_USERSPACE_ONLY
100    bool "Userspace Only"
101    help
102
103config UNALIGNED_ACCESS_DISABLED
104    bool "Disabled"
105    help
106
107endchoice
108
109config DEBUG_STACKOVERFLOW
110    bool "Check for stack overflows"
111    default n
112    depends on DEBUG_KERNEL
113    help
114      This option will cause messages to be printed if free kernel stack space
115      drops below a certain limit (THREAD_SIZE /8).
116
117config DEBUG_STACK_USAGE
118    bool "Stack utilization instrumentation"
119    default n
120    depends on DEBUG_KERNEL
121    help
122      Enables the display of the minimum amount of free kernel stack which each
123      task has ever had available in the sysrq-T and sysrq-P debug output.
124
125      This option will slow down process creation somewhat.
126
127source "lib/Kconfig.debug"
128
129endmenu
130

Archive Download this file



interactive