]> git.baikalelectronics.ru Git - kernel.git/commit
dyndbg: accept 'file foo.c:func1' and 'file foo.c:10-100'
authorJim Cromie <jim.cromie@gmail.com>
Sun, 19 Jul 2020 23:10:53 +0000 (17:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2020 15:00:09 +0000 (17:00 +0200)
commit747b28d0bd5d933ab3d16cc183f17f1e4b5ce102
treed8440bb2d55d99e06b199eef131e857e6d4ab801
parent8bd6a983d8036d1319f5b5358cf3143e98fdc591
dyndbg: accept 'file foo.c:func1' and 'file foo.c:10-100'

Accept these additional query forms:

   echo "file $filestr +_" > control

       path/to/file.c:100 # as from control, column 1
       path/to/file.c:1-100 # or any legal line-range
       path/to/file.c:func_A # as from an editor/browser
       path/to/file.c:drm_* # wildcards still work
       path/to/file.c:*_foo # lead wildcard too

1st 2 examples are treated as line-ranges, 3-5 are treated as func's

Doc these changes, and sprinkle in a few extra wild-card examples and
trailing # explanation texts.

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