]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dynamic_debug: add wildcard support to filter files/functions/modules
authorDu, Changbin <changbin.du@gmail.com>
Fri, 3 Jan 2014 03:10:11 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:11 +0000 (14:10 +1100)
commit21e48966fde9e41d6a19eabe17deb062a343cbb7
treefa0957995eca650652c35926d901deeaa0066568
parent3d54acb0477764b26a3359d9da23be66eb2d9bf9
dynamic_debug: add wildcard support to filter files/functions/modules

Add wildcard '*'(matches zero or more characters) and '?' (matches one
character) support when qurying debug flags.

Now we can open debug messages using keywords. eg:
1. open debug logs in all usb drivers
    echo "file drivers/usb/* +p" > <debugfs>/dynamic_debug/control
2.  open debug logs for usb xhci code
    echo "file *xhci* +p" > <debugfs>/dynamic_debug/control

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>
lib/dynamic_debug.c