diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2012-04-27 16:30:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-30 16:26:30 -0400 |
commit | 29e36c9ffb696ed8d73e1aee713d483ec74a9a43 (patch) | |
tree | 1cb91235091fa9d750fd56753f6b4ffd6701ca0d /lib | |
parent | 8e59b5cfb9a6f43753236b554d785e8efca62db7 (diff) |
dynamic_debug: update Documentation/*, Kconfig.debug
In dynamic-debug-howto.txt:
- add section: Debug Messages at Module Initialization Time
- update flags indicators in example outputs to include '='
- make flags descriptions tabular
- add item on '_' flag-char
- add dyndbg, boot-args examples
- rewrap some paragraphs with long lines
In Kconfig.debug, note that compiling with -DDEBUG enables all
pr_debug()s in that code.
In kernel-parameters.txt, add dyndbg and module.dyndbg items,
and deprecate ddebug_query.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 17 |
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 | ||