diff options
Diffstat (limited to 'Documentation/dynamic-debug-howto.txt')
-rw-r--r-- | Documentation/dynamic-debug-howto.txt | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Documentation/dynamic-debug-howto.txt b/Documentation/dynamic-debug-howto.txt index 674c5663d346..58ea64a96165 100644 --- a/Documentation/dynamic-debug-howto.txt +++ b/Documentation/dynamic-debug-howto.txt | |||
@@ -24,7 +24,7 @@ Dynamic debug has even more useful features: | |||
24 | read to display the complete list of known debug statements, to help guide you | 24 | read to display the complete list of known debug statements, to help guide you |
25 | 25 | ||
26 | Controlling dynamic debug Behaviour | 26 | Controlling dynamic debug Behaviour |
27 | =============================== | 27 | =================================== |
28 | 28 | ||
29 | The behaviour of pr_debug()/dev_debug()s are controlled via writing to a | 29 | The behaviour of pr_debug()/dev_debug()s are controlled via writing to a |
30 | control file in the 'debugfs' filesystem. Thus, you must first mount the debugfs | 30 | control file in the 'debugfs' filesystem. Thus, you must first mount the debugfs |
@@ -212,6 +212,26 @@ Note the regexp ^[-+=][scp]+$ matches a flags specification. | |||
212 | Note also that there is no convenient syntax to remove all | 212 | Note also that there is no convenient syntax to remove all |
213 | the flags at once, you need to use "-psc". | 213 | the flags at once, you need to use "-psc". |
214 | 214 | ||
215 | |||
216 | Debug messages during boot process | ||
217 | ================================== | ||
218 | |||
219 | To be able to activate debug messages during the boot process, | ||
220 | even before userspace and debugfs exists, use the boot parameter: | ||
221 | ddebug_query="QUERY" | ||
222 | |||
223 | QUERY follows the syntax described above, but must not exceed 1023 | ||
224 | characters. The enablement of debug messages is done as an arch_initcall. | ||
225 | Thus you can enable debug messages in all code processed after this | ||
226 | arch_initcall via this boot parameter. | ||
227 | On an x86 system for example ACPI enablement is a subsys_initcall and | ||
228 | ddebug_query="file ec.c +p" | ||
229 | will show early Embedded Controller transactions during ACPI setup if | ||
230 | your machine (typically a laptop) has an Embedded Controller. | ||
231 | PCI (or other devices) initialization also is a hot candidate for using | ||
232 | this boot parameter for debugging purposes. | ||
233 | |||
234 | |||
215 | Examples | 235 | Examples |
216 | ======== | 236 | ======== |
217 | 237 | ||