diff options
Diffstat (limited to 'Documentation/dynamic-debug-howto.txt')
-rw-r--r-- | Documentation/dynamic-debug-howto.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Documentation/dynamic-debug-howto.txt b/Documentation/dynamic-debug-howto.txt index 6e1684981da2..72322c6d7352 100644 --- a/Documentation/dynamic-debug-howto.txt +++ b/Documentation/dynamic-debug-howto.txt | |||
@@ -6,8 +6,16 @@ This document describes how to use the dynamic debug (dyndbg) feature. | |||
6 | 6 | ||
7 | Dynamic debug is designed to allow you to dynamically enable/disable | 7 | Dynamic debug is designed to allow you to dynamically enable/disable |
8 | kernel code to obtain additional kernel information. Currently, if | 8 | kernel code to obtain additional kernel information. Currently, if |
9 | CONFIG_DYNAMIC_DEBUG is set, then all pr_debug()/dev_dbg() calls can | 9 | CONFIG_DYNAMIC_DEBUG is set, then all pr_debug()/dev_dbg() and |
10 | be dynamically enabled per-callsite. | 10 | print_hex_dump_debug()/print_hex_dump_bytes() calls can be dynamically |
11 | enabled per-callsite. | ||
12 | |||
13 | If CONFIG_DYNAMIC_DEBUG is not set, print_hex_dump_debug() is just | ||
14 | shortcut for print_hex_dump(KERN_DEBUG). | ||
15 | |||
16 | For print_hex_dump_debug()/print_hex_dump_bytes(), format string is | ||
17 | its 'prefix_str' argument, if it is constant string; or "hexdump" | ||
18 | in case 'prefix_str' is build dynamically. | ||
11 | 19 | ||
12 | Dynamic debug has even more useful features: | 20 | Dynamic debug has even more useful features: |
13 | 21 | ||
@@ -202,6 +210,9 @@ The flags are: | |||
202 | t Include thread ID in messages not generated from interrupt context | 210 | t Include thread ID in messages not generated from interrupt context |
203 | _ No flags are set. (Or'd with others on input) | 211 | _ No flags are set. (Or'd with others on input) |
204 | 212 | ||
213 | For print_hex_dump_debug() and print_hex_dump_bytes(), only 'p' flag | ||
214 | have meaning, other flags ignored. | ||
215 | |||
205 | For display, the flags are preceded by '=' | 216 | For display, the flags are preceded by '=' |
206 | (mnemonic: what the flags are currently equal to). | 217 | (mnemonic: what the flags are currently equal to). |
207 | 218 | ||