aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug33
1 files changed, 21 insertions, 12 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 6777153f18f..e1193417703 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -3,12 +3,16 @@ config PRINTK_TIME
3 bool "Show timing information on printks" 3 bool "Show timing information on printks"
4 depends on PRINTK 4 depends on PRINTK
5 help 5 help
6 Selecting this option causes timing information to be 6 Selecting this option causes time stamps of the printk()
7 included in printk output. This allows you to measure 7 messages to be added to the output of the syslog() system
8 the interval between kernel operations, including bootup 8 call and at the console.
9 operations. This is useful for identifying long delays 9
10 in kernel startup. Or add printk.time=1 at boot-time. 10 The timestamp is always recorded internally, and exported
11 See Documentation/kernel-parameters.txt 11 to /dev/kmsg. This flag just specifies if the timestamp should
12 be included, not that the timestamp is recorded.
13
14 The behavior is also controlled by the kernel command line
15 parameter printk.time=1. See Documentation/kernel-parameters.txt
12 16
13config DEFAULT_MESSAGE_LOGLEVEL 17config DEFAULT_MESSAGE_LOGLEVEL
14 int "Default message log level (1-7)" 18 int "Default message log level (1-7)"
@@ -1205,8 +1209,13 @@ config DYNAMIC_DEBUG
1205 otherwise be available at runtime. These messages can then be 1209 otherwise be available at runtime. These messages can then be
1206 enabled/disabled based on various levels of scope - per source file, 1210 enabled/disabled based on various levels of scope - per source file,
1207 function, module, format string, and line number. This mechanism 1211 function, module, format string, and line number. This mechanism
1208 implicitly enables all pr_debug() and dev_dbg() calls. The impact of 1212 implicitly compiles in all pr_debug() and dev_dbg() calls, which
1209 this compile option is a larger kernel text size of about 2%. 1213 enlarges the kernel text size by about 2%.
1214
1215 If a source file is compiled with DEBUG flag set, any
1216 pr_debug() calls in it are enabled by default, but can be
1217 disabled at runtime as below. Note that DEBUG flag is
1218 turned on by many CONFIG_*DEBUG* options.
1210 1219
1211 Usage: 1220 Usage:
1212 1221
@@ -1223,16 +1232,16 @@ config DYNAMIC_DEBUG
1223 lineno : line number of the debug statement 1232 lineno : line number of the debug statement
1224 module : module that contains the debug statement 1233 module : module that contains the debug statement
1225 function : function that contains the debug statement 1234 function : function that contains the debug statement
1226 flags : 'p' means the line is turned 'on' for printing 1235 flags : '=p' means the line is turned 'on' for printing
1227 format : the format used for the debug statement 1236 format : the format used for the debug statement
1228 1237
1229 From a live system: 1238 From a live system:
1230 1239
1231 nullarbor:~ # cat <debugfs>/dynamic_debug/control 1240 nullarbor:~ # cat <debugfs>/dynamic_debug/control
1232 # filename:lineno [module]function flags format 1241 # filename:lineno [module]function flags format
1233 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" 1242 fs/aio.c:222 [aio]__put_ioctx =_ "__put_ioctx:\040freeing\040%p\012"
1234 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012" 1243 fs/aio.c:248 [aio]ioctx_alloc =_ "ENOMEM:\040nr_events\040too\040high\012"
1235 fs/aio.c:1770 [aio]sys_io_cancel - "calling\040cancel\012" 1244 fs/aio.c:1770 [aio]sys_io_cancel =_ "calling\040cancel\012"
1236 1245
1237 Example usage: 1246 Example usage:
1238 1247