Skip to content
  • 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