Skip to content

add wildcard support for dynamic debug

Du, Changbin lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest3 patches 0 repliesNew

Changes in v5 from the cover letter

moved matching function to lib/parser.c

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/parser.c: add match_wildcard functioninclude/linux/parser.h lib/parser.c+52 -00 replies
2/3dynamic_debug: add wildcard support to filter files/functions/moduleslib/dynamic_debug.c+10 -50 replies
3/3dynamic-debug-howto.txt: update since new wildcard supportDocumentation/dynamic-debug-howto.txt+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] add wildcard support for dynamic debug

From: "Du, Changbin" <[email protected]>

These patches are to make it easier to filter kernel debug logs which we want.
Whith wildcard support, below command can enable all usb debug logs:
#echo "file drivers/usb/* +p" > <debugfs>/dynamic_debug/control
This patch only enables two wildcard:
'*' - matches zero or more characters
'?' - matches one character

Changes since v4:
moved matching function to lib/parser.c

Du, Changbin (3):
lib/parser.c: add match_wildcard function
dynamic_debug: add wildcard support to filter files/functions/modules dynamic-debug-howto.txt: update since new wildcard support

 Documentation/dynamic-debug-howto.txt |  9 +++++++
 include/linux/parser.h                |  1 +
 lib/dynamic_debug.c                   | 15 +++++++----
 lib/parser.c                          | 51 +++++++++++++++++++++++++++++++++++
 4 files changed, 71 insertions(+), 5 deletions(-)
Signature · 1 line
1.8.3.2