Thread (46 messages) 46 messages, 10 authors, 2020-06-12

Re: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask

From: Matthew Wilcox <willy@infradead.org>
Date: 2020-06-09 11:09:18
Also in: linux-acpi, linux-arm-msm, linux-btrfs, linux-media, lkml, netdev

On Tue, Jun 09, 2020 at 01:45:58PM +0300, Stanimir Varbanov wrote:
+level
+    The given level will be a bitmask ANDed with the level of the each ``pr_debug()``
+    callsite. This will allow to group debug messages and show only those of the
+    same level.  The -p flag takes precedence over the given level. Note that we can
+    have up to five groups of debug messages.
That doesn't sound like a "level".  printk has levels.  If you ask for
"level 3" messages, you get messages from levels 0, 1, 2, and 3.  These
seem like "types" or "groups" or something.
+  // enable all messages in file with 0x01 level bitmask
+  nullarbor:~ # echo -n 'file foo.c level 0x01 +p' >
+                                <debugfs>/dynamic_debug/control
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help