diff options
author | Du, Changbin <changbin.du@gmail.com> | 2014-01-23 18:54:15 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 19:36:55 -0500 |
commit | 8f073bd0d0bf7c519854a196215a837abbfbdc62 (patch) | |
tree | 1a5df6814fbecee7ce157c754d264010602804d1 /Documentation/dynamic-debug-howto.txt | |
parent | 578b1e0701af34f9ef69daabda4431f1e8501109 (diff) |
dynamic-debug-howto.txt: update since new wildcard support
Add the usage of using new feature wildcard support.
Signed-off-by: Du, Changbin <changbin.du@gmail.com>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/dynamic-debug-howto.txt')
-rw-r--r-- | Documentation/dynamic-debug-howto.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/dynamic-debug-howto.txt b/Documentation/dynamic-debug-howto.txt index 1bbdcfcf1f13..46325eb2ea76 100644 --- a/Documentation/dynamic-debug-howto.txt +++ b/Documentation/dynamic-debug-howto.txt | |||
@@ -108,6 +108,12 @@ If your query set is big, you can batch them too: | |||
108 | 108 | ||
109 | ~# cat query-batch-file > <debugfs>/dynamic_debug/control | 109 | ~# cat query-batch-file > <debugfs>/dynamic_debug/control |
110 | 110 | ||
111 | A another way is to use wildcard. The match rule support '*' (matches | ||
112 | zero or more characters) and '?' (matches exactly one character).For | ||
113 | example, you can match all usb drivers: | ||
114 | |||
115 | ~# echo "file drivers/usb/* +p" > <debugfs>/dynamic_debug/control | ||
116 | |||
111 | At the syntactical level, a command comprises a sequence of match | 117 | At the syntactical level, a command comprises a sequence of match |
112 | specifications, followed by a flags change specification. | 118 | specifications, followed by a flags change specification. |
113 | 119 | ||
@@ -315,6 +321,9 @@ nullarbor:~ # echo -n 'func svc_process -p' > | |||
315 | nullarbor:~ # echo -n 'format "nfsd: READ" +p' > | 321 | nullarbor:~ # echo -n 'format "nfsd: READ" +p' > |
316 | <debugfs>/dynamic_debug/control | 322 | <debugfs>/dynamic_debug/control |
317 | 323 | ||
324 | // enable messages in files of which the pathes include string "usb" | ||
325 | nullarbor:~ # echo -n '*usb* +p' > <debugfs>/dynamic_debug/control | ||
326 | |||
318 | // enable all messages | 327 | // enable all messages |
319 | nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control | 328 | nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control |
320 | 329 | ||