Re: selftests/livepatch fails on s390

Alexander Gordeev
2023-12-19T15:23:56Z

On Tue, Dec 19, 2023 at 09:50:18AM -0500, Joe Lawrence wrote:
> There is a loop_util() utility function in the script that could be used
> to wait, like:
>
> log "$last_dmesg_msg"
> loop_until "dmesg | grep -q '$last_dmesg_msg'" ||
> die "Can't find canary dmesg entry, buffer overrun?"
> LAST_DMESG=$(dmesg | grep "$last_dmesg_msg")
>
> That should catch 1) short latencies and 2) buffer rollover. Maybe that
> is good enough?

I guess, if loop_until() would fail in case a message did not show up
in meaningful time, that would be it.

> --
> Joe
>