]> git.baikalelectronics.ru Git - kernel.git/commit
dyndbg: accept query terms like file=bar and module=foo
authorJim Cromie <jim.cromie@gmail.com>
Sun, 19 Jul 2020 23:10:54 +0000 (17:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2020 15:00:09 +0000 (17:00 +0200)
commitc77254e16ff9b86660738d66629786ea6fe400e2
tree4a7adf29a289d782c102d6c212bbfaac9a4fae3a
parent747b28d0bd5d933ab3d16cc183f17f1e4b5ce102
dyndbg: accept query terms like file=bar and module=foo

Current code expects "keyword" "arg" as 2 words, space separated.
Change to also accept "keyword=arg" form as well, and drop !(nwords%2)
requirement.  Then in rest of function, use new keyword, arg variables
instead of word[i], word[i+1]

Acked-by: <jbaron@akamai.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200719231058.1586423-15-jim.cromie@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/dynamic-debug-howto.rst
lib/dynamic_debug.c