Lines Matching +full:in +full:- +full:line
9 debug-print code to obtain additional kernel information.
16 * a Catalog of all *prdbgs* in your kernel.
22 - source filename
23 - function name
24 - line number (including ranges of line numbers)
25 - module name
26 - format string
27 - class name (as known/declared by each module)
32 You can view the currently configured behaviour in the *prdbg* catalog::
34 :#> head -n7 /proc/dynamic_debug/control
43 The 3rd space-delimited column shows the current flags, preceded by
55 :#> ddcmd '-p; module main func run* +p'
70 also under the mount-dir, typically ``/sys/kernel/debug/``.
78 :#> ddcmd file svcsock.c line 1603 +p
79 :#> ddcmd "file svcsock.c line 1603 +p"
80 :#> ddcmd ' file svcsock.c line 1603 +p '
90 :#> cat query-batch-file > /proc/dynamic_debug/control
92 You can also use wildcards in each query term. The match rule supports
101 command ::= match-spec* flags-spec
103 The match-spec's select *prdbgs* from the catalog, upon which to apply
104 the flags-spec, all constraints are ANDed together. An absent keyword
112 match-spec ::= 'func' string |
117 'line' line-range
119 line-range ::= lineno |
120 '-'lineno |
121 lineno'-' |
122 lineno'-'lineno
124 lineno ::= unsigned-int
128 ``line-range`` cannot contain space, e.g.
129 "1-30" is valid range but "1 - 30" is not.
139 func *recv* # in rfcomm, bluetooth, ping, tcp
142 The given string is compared against either the src-root relative
150 file inode.c:1-100 # parse :tail as a line-range (above)
155 seen in ``lsmod``, i.e. without the directory or the ``.ko``
156 suffix and with ``-`` changed to ``_``. Examples::
163 The given string is searched for in the dynamic debug format
168 Alternatively, the string can be enclosed in double quote
173 format readahead // some pr_debugs in the readahead cache
185 class JUNK # silent non-match
186 // class TLD_* # NOTICE: no wildcard in class names
188 line
189 The given line number or range of line numbers is compared
190 against the line number of each ``pr_debug()`` callsite. A single
191 line number matches the callsite line number exactly. A
192 range of line numbers matches any callsite between the first
193 and last line number inclusive. An empty first number means
194 the first line in the file, an empty last line number means the
195 last line number in the file. Examples::
197 line 1603 // exactly line 1603
198 line 1600-1605 // the six lines from line 1600 to line 1605
199 line -1605 // the 1605 lines from line 1 to line 1605
200 line 1600- // all lines from line 1600 to the end of the file
206 - remove the given flags
215 Decorator flags add to the message-prefix, in order:
220 l Include line number
225 Note the regexp ``^[-+=][fslmpt_]+$`` matches a flags specification.
226 To clear all flags at once, use ``=_`` or ``-fslmpt``.
232 To activate debug messages for core code and built-in modules during
240 messages in all code run after this early_initcall via this boot
252 If ``foo`` module is not built-in, ``foo.dyndbg`` will still be processed at
262 params given in modprobe args or ``/etc/modprob.d/*.conf`` files,
263 in the following order:
270 2. ``foo.dyndbg`` as given in boot args, ``foo.`` is stripped and passed::
278 These ``dyndbg`` queries are applied in order, with last having final say.
283 In the ``foo.dyndbg="QUERY"`` form, the query must exclude ``module foo``.
284 ``foo`` is extracted from the param-name, and applied to each query in
285 ``QUERY``, and only 1 match-spec of each type is allowed.
289 - modules do not need to define it explicitly
290 - every module gets it tacitly, whether they use pr_debug or not
291 - it doesn't appear in ``/sys/module/$module/parameters/``
294 For ``CONFIG_DYNAMIC_DEBUG`` kernels, any settings given at boot-time (or
295 enabled by ``-DDEBUG`` flag during compilation) can be disabled later via
298 echo "module module_name -p" > /proc/dynamic_debug/control
305 // enable the message at line 1603 of file svcsock.c
306 :#> ddcmd 'file svcsock.c line 1603 +p'
308 // enable all the messages in file svcsock.c
311 // enable all the messages in the NFS server module
314 // enable all 12 messages in the function svc_process()
317 // disable all 12 messages in the function svc_process()
318 :#> ddcmd 'func svc_process -p'
323 // enable messages in files of which the paths include string "usb"
332 // boot-args example, with newlines and comments for readability
333 Kernel command line: ...
334 // see what's going on in dyndbg=value processing
336 // enable pr_debugs in the btrfs module (can be builtin or loadable)
338 // enable pr_debugs in all files under init/
341 // enable pr_debugs in 2 functions in a module loaded later
352 If you do not want to enable dynamic debug globally (i.e. in some embedded
354 debug and add ``ccflags := -DDYNAMIC_DEBUG_MODULE`` into the Makefile of any
369 Otherwise, they are off by default; ``ccflags += -DDEBUG`` or
370 ``#define DEBUG`` in a source file will enable them appropriately.
377 in case ``prefix_str`` is built dynamically.