• Jim Cromie's avatar
    dynamic_debug: add modname arg to exec_query callchain · 8e59b5cf
    Jim Cromie authored
    Pass module name into ddebug_exec_queries(), ddebug_exec_query(), and
    ddebug_parse_query() as separate parameter.  In ddebug_parse_query(),
    the module name is added into the query struct before the query-string
    is parsed.  This allows the query-string to be shorter:
    
    instead of:
       $modname.dyndbg="module $modname +fp"
    do this:
       $modname.dyndbg="+fp"
    
    Omitting "module $modname" from the query string is actually required
    for $modname.dyndbg rules; the set-only-once check added in a previous
    patch will throw an error if its added again.  ddebug_query="..." has
    no $modname associated with it, so the query string may include it.
    
    This also fixes redundant "module $modname" otherwise needed to handle
    multiple queries per string:
    
       $modname.dyndbg="func foo +fp; func bar +fp"
    Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
    Acked-by: default avatarJason Baron <jbaron@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    8e59b5cf
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...