Re: [PATCH v4] printk: ringbuffer: Add KUnit test

From: Petr Mladek
Date: Tue Jul 01 2025 - 11:24:54 EST


On Fri 2025-06-20 12:26:09, Thomas Weißschuh wrote:
> The KUnit test validates the correct operation of the ringbuffer.
> A separate dedicated ringbuffer is used so that the global printk
> ringbuffer is not touched.
>
> Co-developed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
> Tested-by: Petr Mladek <pmladek@xxxxxxxx>
> ---
> Changes in v4:
> - Add comment about possible prb_reserve() failures
> - Pick up tags from Petr
> - Link to v3: https://lore.kernel.org/r/20250612-printk-ringbuffer-test-v3-1-550c088ee368@xxxxxxxxxxxxx

I have already pushed v3. And I would prefer to avoid a rebase.
I am going to send a patch which will add the comment.

Best Regards,
Petr