Re: [PATCH v2 20/25] printk: Register information into meminspect

From: Eugen Hristev

Date: Mon Mar 16 2026 - 06:26:15 EST




On 3/16/26 11:39, John Ogness wrote:
> On 2026-03-11, Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx> wrote:
>> Annotate vital static, dynamic information into meminspect for debugging
>>
>> Static:
>> - prb_descs
>> - prb_infos
>> - prb
>> - prb_data
>> - printk_rb_static
>> - printk_rb_dynamic
>
> FYI: vmcore also exports the symbol "clear_seq". It is not required if
> you are interested in reading _everything_ in the buffer. But it may be
> interesting if you want to mirror vmcore tool features.

Thank you for your review and suggestion. One of the key points of
meminspect is to be easy to use by the kernel developer. E.g. to be easy
to add another symbol, like `clear_seq` for a particular use case.
So, someone wanting to make use of it, can easily add it.
The purpose of the initial submission would be to have a basic use case
working, and show it as an example for everyone.
If you would like to detail about the features you mention, it could be
interesting to try them and see if it would work with a meminspect dump.

Eugen
>
>> Dynamic:
>> - new_descs
>> - new_infos
>> - new_log_buf
>>
>> meminspect uses a different API to annotate variables for inspection,
>> and information about these variables is stored in the inspection table.
>>
>> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
>> Co-developed-by: Eugen Hristev <eugen.hristev@xxxxxxxxxx>
>> Signed-off-by: Eugen Hristev <eugen.hristev@xxxxxxxxxx>
>> Signed-off-by: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
>
> Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>