diff options
author | John Ogness <[email protected]> | 2020-07-21 15:31:28 +0206 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2020-09-08 09:32:59 +0200 |
commit | d397820f36ffe4701343b6ee12687d60db0ed8db (patch) | |
tree | 1e0e4cf837e026131eaaa7ede9753cf11ed8959f /scripts/gdb/linux/dmesg.py | |
parent | 3270ecb5214ad11a4a94af92c4bf47740c90d294 (diff) |
printk: ringbuffer: support dataless records
With commit 896fbe20b4e2333fb55 ("printk: use the lockless ringbuffer"),
printk() started silently dropping messages without text because such
records are not supported by the new printk ringbuffer.
Add support for such records.
Currently dataless records are denoted by INVALID_LPOS in order
to recognize failed prb_reserve() calls. Change the ringbuffer
to instead use two different identifiers (FAILED_LPOS and
NO_LPOS) to distinguish between failed prb_reserve() records and
successful dataless records, respectively.
Fixes: 896fbe20b4e2333fb55 ("printk: use the lockless ringbuffer")
Fixes: https://lkml.kernel.org/r/[email protected]
Reported-by: Marco Elver <[email protected]>
Signed-off-by: John Ogness <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Marco Elver <[email protected]>
Signed-off-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions