Re: [RFC PATCH 2/2] tracing: Record and show boot ID in last_boot_info
From: Google
Date: Mon Jun 01 2026 - 00:39:02 EST
On Thu, 28 May 2026 16:36:33 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Sun, 24 May 2026 10:44:39 +0900
> Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> wrote:
>
> > > If the get_boot_id() is accepted by the random folks, then I'm fine with
> > > this change.
> >
> > Yeah, BTW, Sashiko found this can be initialized before we get enough
> > entropy for random seed. Maybe we need one more delay.
>
> Well, maybe for adding the boot_id later, but the code that initializes the
> buffers needs to stay early. With the backup instance, the persistent ring
> buffer can restart tracing immediately.
Agreed, so the buffer will be made in early stage without initializing
the boot_id field, and it will be updated when user reads the boot_id
from kernel. Anyway, without reading boot_id from user space, it is
meaningless.
Thank you,
--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>