summaryrefslogtreecommitdiffstats
path: root/lib/test_dynamic_debug.c
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2022-09-04 15:40:44 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-07 16:58:23 +0200
commite75ef56f74965f426dd819a41336b640ffdd8fbc (patch)
tree000691c9a0f4ac2fef1aafe802d85bb8c157bb5c /lib/test_dynamic_debug.c
parent47ea6f99d06e5a76afffc7f97009081158a9929d (diff)
downloadlinux-stable-e75ef56f74965f426dd819a41336b640ffdd8fbc.tar.gz
linux-stable-e75ef56f74965f426dd819a41336b640ffdd8fbc.tar.bz2
linux-stable-e75ef56f74965f426dd819a41336b640ffdd8fbc.zip
dyndbg: let query-modname override actual module name
dyndbg's control-parser: ddebug_parse_query(), requires that search terms: module, func, file, lineno, are used only once in a query; a thing cannot be named both foo and bar. The cited commit added an overriding module modname, taken from the module loader, which is authoritative. So it set query.module 1st, which disallowed its use in the query-string. But now, its useful to allow a module-load to enable classes across a whole (or part of) a subsystem at once. # enable (dynamic-debug in) drm only modprobe drm dyndbg="class DRM_UT_CORE +p" # get drm_helper too modprobe drm dyndbg="class DRM_UT_CORE module drm* +p" # get everything that knows DRM_UT_CORE modprobe drm dyndbg="class DRM_UT_CORE module * +p" # also for boot-args: drm.dyndbg="class DRM_UT_CORE module * +p" So convert the override into a default, by filling it only when/after the query-string omitted the module. NB: the query class FOO handling is forthcoming. Fixes: 8e59b5cfb9a6 dynamic_debug: add modname arg to exec_query callchain Acked-by: Jason Baron <jbaron@akamai.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20220904214134.408619-8-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions