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

From: Jan Kiszka
Date: Fri Aug 21 2020 - 04:56:12 EST


On 21.08.20 10:08, Petr Mladek wrote:
> 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.
>

Thanks, perfect!

> 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.
>

The problem with all those out-of-tree kernel debugging projects is that
they are even further away from the changes in upstream they need to
adjust to over and over again. It's already hard for scripts/gdb to keep
up as only few people are aware of the dependencies, and it's always
easy to forget. But it's getting better and better here IMHO. And that
was my idea behind pushing things into upstream.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux