[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250514133327.3a6382e5aa0e9d5533fe690c@kernel.org>
Date: Wed, 14 May 2025 13:33:27 +0900
From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] tracing: ring_buffer: Rewind persistent ring buffer
when reboot
On Tue, 13 May 2025 20:36:47 -0400
Steven Rostedt <rostedt@...dmis.org> wrote:
> On Tue, 13 May 2025 20:32:37 -0400
> Steven Rostedt <rostedt@...dmis.org> wrote:
>
> > @@ -9628,6 +9636,14 @@ static void setup_trace_scratch(struct trace_array *tr,
> >
> > /* Scan modules to make text delta for modules. */
> > module_for_each_mod(make_mod_delta, tr);
> > +
> > + /* Set trace_clock as the same of the previous boot. */
> > + if (tscratch->clock_id != tr->clock_id) {
> > + if (tracing_set_clock(tr, trace_clocks[tscratch->clock_id].name) < 0) {
> > + pr_info("the previous trace_clock info is not valid.");
> > + goto reset;
> > + }
> > + }
> > return;
> > reset:
> > /* Invalid trace modules */
>
>
> Hmm, somehow I got your other patch in here :-D
Oops, good catch! I mixed other patch there :-(
>
> -- Steve
--
Masami Hiramatsu (Google) <mhiramat@...nel.org>
Powered by blists - more mailing lists