aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 6777153f18f3..ef8192bc0c33 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1205,8 +1205,13 @@ config DYNAMIC_DEBUG
1205 otherwise be available at runtime. These messages can then be 1205 otherwise be available at runtime. These messages can then be
1206 enabled/disabled based on various levels of scope - per source file, 1206 enabled/disabled based on various levels of scope - per source file,
1207 function, module, format string, and line number. This mechanism 1207 function, module, format string, and line number. This mechanism
1208 implicitly enables all pr_debug() and dev_dbg() calls. The impact of 1208 implicitly compiles in all pr_debug() and dev_dbg() calls, which
1209 this compile option is a larger kernel text size of about 2%. 1209 enlarges the kernel text size by about 2%.
1210
1211 If a source file is compiled with DEBUG flag set, any
1212 pr_debug() calls in it are enabled by default, but can be
1213 disabled at runtime as below. Note that DEBUG flag is
1214 turned on by many CONFIG_*DEBUG* options.
1210 1215
1211 Usage: 1216 Usage:
1212 1217
@@ -1223,16 +1228,16 @@ config DYNAMIC_DEBUG
1223 lineno : line number of the debug statement 1228 lineno : line number of the debug statement
1224 module : module that contains the debug statement 1229 module : module that contains the debug statement
1225 function : function that contains the debug statement 1230 function : function that contains the debug statement
1226 flags : 'p' means the line is turned 'on' for printing 1231 flags : '=p' means the line is turned 'on' for printing
1227 format : the format used for the debug statement 1232 format : the format used for the debug statement
1228 1233
1229 From a live system: 1234 From a live system:
1230 1235
1231 nullarbor:~ # cat <debugfs>/dynamic_debug/control 1236 nullarbor:~ # cat <debugfs>/dynamic_debug/control
1232 # filename:lineno [module]function flags format 1237 # filename:lineno [module]function flags format
1233 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" 1238 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" 1239 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" 1240 fs/aio.c:1770 [aio]sys_io_cancel =_ "calling\040cancel\012"
1236 1241
1237 Example usage: 1242 Example usage:
1238 1243