]> git.baikalelectronics.ru Git - kernel.git/commit
docs: gdbmacros: print newest record
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 29 Dec 2022 13:43:39 +0000 (14:49 +0106)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:26 +0000 (09:34 +0100)
commit46c92169bd7412aca5b13a9b4a1bc5a609953315
treea5a858f77a0e1ec72be4d2d3f6c08d5d6cfe05d1
parent3291a9fb74a044f95c068271d6cd2641807c7f66
docs: gdbmacros: print newest record

commit 5d6603be6be1655bf32e3d7d971c697f35803240 upstream.

@head_id points to the newest record, but the printing loop
exits when it increments to this value (before printing).

Exit the printing loop after the newest record has been printed.

The python-based function in scripts/gdb/linux/dmesg.py already
does this correctly.

Fixes: 9b9edc9291a3 ("scripts/gdb: update for lockless printk ringbuffer")
Cc: stable@vger.kernel.org
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/20221229134339.197627-1-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/kdump/gdbmacros.txt