diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2011-12-19 23:12:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 21:48:52 +0100 |
commit | 5ca7d2a6c5e4f24dfe39e8383c6d32e61d95d16a (patch) | |
tree | 9825251f6cd4a7027e8235a73d6a6c8654a6afed /lib/nlattr.c | |
parent | dynamic_debug: drop explicit !=NULL checks (diff) | |
download | linux-5ca7d2a6c5e4f24dfe39e8383c6d32e61d95d16a.tar.xz linux-5ca7d2a6c5e4f24dfe39e8383c6d32e61d95d16a.zip |
dynamic_debug: describe_flags with '=[pmflt_]*'
Change describe_flags() to emit '=[pmflt_]+' for current callsite
flags, or just '=_' when they're disabled. Having '=' in output
allows a more selective grep expression; in contrast '-' may appear
in filenames, line-ranges, and format-strings. '=' also has better
mnemonics, saying; "the current setting is equal to <flags>".
This allows grep "=_" <dbgfs>/dynamic_debug/control to see disabled
callsites while avoiding the many occurrences of " = " seen in format
strings.
Enlarge flagsbufs to handle additional flag char, and alter
ddebug_parse_flags() to allow flags=0, so that user can turn off all
debug flags via:
~# echo =_ > <dbgfs>/dynamic_debug/control
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions