OSDN Git Service

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)
commitaaebe329bff0d84e04e74915a828b12a40b55456
treed8440bb2d55d99e06b199eef131e857e6d4ab801
parent8037072d8139da435f3fcf9369a1ccc388431a2a
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