Subject: + dynamic-debug-howtotxt-update-since-new-wildcard-support.patch added to -mm tree To: changbin.du@xxxxxxxxx,jbaron@xxxxxxxxxx,joe@xxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 19 Nov 2013 15:34:21 -0800 The patch titled Subject: dynamic-debug-howto.txt: update since new wildcard support has been added to the -mm tree. Its filename is dynamic-debug-howtotxt-update-since-new-wildcard-support.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/dynamic-debug-howtotxt-update-since-new-wildcard-support.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/dynamic-debug-howtotxt-update-since-new-wildcard-support.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Du, Changbin" <changbin.du@xxxxxxxxx> Subject: 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@xxxxxxxxx> Cc: Jason Baron <jbaron@xxxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/dynamic-debug-howto.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff -puN Documentation/dynamic-debug-howto.txt~dynamic-debug-howtotxt-update-since-new-wildcard-support Documentation/dynamic-debug-howto.txt --- a/Documentation/dynamic-debug-howto.txt~dynamic-debug-howtotxt-update-since-new-wildcard-support +++ a/Documentation/dynamic-debug-howto.txt @@ -108,6 +108,12 @@ If your query set is big, you can batch ~# 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 specifications, followed by a flags change specification. @@ -315,6 +321,9 @@ nullarbor:~ # echo -n 'func svc_process nullarbor:~ # echo -n 'format "nfsd: READ" +p' > <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 nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control _ Patches currently in -mm which might be from changbin.du@xxxxxxxxx are lib-parserc-add-match_wildcard-function.patch dynamic_debug-add-wildcard-support-to-filter-files-functions-modules.patch dynamic-debug-howtotxt-update-since-new-wildcard-support.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html