printk: ringbuffer: change representation of states
authorJohn Ogness <john.ogness@linutronix.de>
Mon, 14 Sep 2020 12:33:52 +0000 (14:39 +0206)
committerPetr Mladek <pmladek@suse.com>
Tue, 15 Sep 2020 13:52:49 +0000 (15:52 +0200)
commit10dcb06d40411a73e1ae111717e9a987bb760313
tree21520d9beb051c2215ce29d03a30e180b6e78cd7
parentcc5c7041c6e1fe8c02fe9e16f28a5e52f7a6957c
printk: ringbuffer: change representation of states

Rather than deriving the state by evaluating bits within the flags
area of the state variable, assign the states explicit values and
set those values in the flags area. Introduce macros to make it
simple to read and write state values for the state variable.

Although the functionality is preserved, the binary representation
for the states is changed.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200914123354.832-5-john.ogness@linutronix.de
Documentation/admin-guide/kdump/gdbmacros.txt
kernel/printk/printk_ringbuffer.c
kernel/printk/printk_ringbuffer.h
scripts/gdb/linux/dmesg.py