mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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>
This commit is contained in:
parent
578b1e0701
commit
8f073bd0d0
1 changed files with 9 additions and 0 deletions
|
@ -108,6 +108,12 @@ If your query set is big, you can batch them too:
|
||||||
|
|
||||||
~# cat query-batch-file > <debugfs>/dynamic_debug/control
|
~# cat query-batch-file > <debugfs>/dynamic_debug/control
|
||||||
|
|
||||||
|
A another way is to use wildcard. The match rule support '*' (matches
|
||||||
|
zero or more characters) and '?' (matches exactly one character).For
|
||||||
|
example, you can match all usb drivers:
|
||||||
|
|
||||||
|
~# echo "file drivers/usb/* +p" > <debugfs>/dynamic_debug/control
|
||||||
|
|
||||||
At the syntactical level, a command comprises a sequence of match
|
At the syntactical level, a command comprises a sequence of match
|
||||||
specifications, followed by a flags change specification.
|
specifications, followed by a flags change specification.
|
||||||
|
|
||||||
|
@ -315,6 +321,9 @@ nullarbor:~ # echo -n 'func svc_process -p' >
|
||||||
nullarbor:~ # echo -n 'format "nfsd: READ" +p' >
|
nullarbor:~ # echo -n 'format "nfsd: READ" +p' >
|
||||||
<debugfs>/dynamic_debug/control
|
<debugfs>/dynamic_debug/control
|
||||||
|
|
||||||
|
// enable messages in files of which the pathes include string "usb"
|
||||||
|
nullarbor:~ # echo -n '*usb* +p' > <debugfs>/dynamic_debug/control
|
||||||
|
|
||||||
// enable all messages
|
// enable all messages
|
||||||
nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control
|
nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue