Re: [PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer

From: Petr Mladek
Date: Fri Aug 21 2020 - 04:08:18 EST


On Fri 2020-08-14 23:31:23, John Ogness wrote:
> Hi,
>
> When we brought in the new lockless printk ringbuffer, we overlooked the gdb
> scripts. Here are a set of patches to implement gdb support for the new
> ringbuffer.
>
> John Ogness (2):
> scripts/gdb: add utils.read_ulong()
> scripts/gdb: update for lockless printk ringbuffer

I am not fluent in the gdb macros and python so I did not try any
deep review. But both patches work for me:

Tested-by: Petr Mladek <pmladek@xxxxxxxx>

I am going to give it few more days before pushing just in case there is
another feedback.

Best Regards,
Petr

BTW: Are you aware of https://github.com/crash-python/crash-python project?
The ambition is to implement "crash" features and even more into
gdb using python extensions. It similar approach like
scripts/gdb/

crash-python is being developed sporadically in waves. It is
mostly during a week that is dedicated for such projects
at SUSE. It would be great to get more contributors.