On Tue, 13 May 2025 20:36:47 -0400
Steven Rostedt [off-list ref] wrote:
On Tue, 13 May 2025 20:32:37 -0400
Steven Rostedt [off-list ref] wrote:
quoted
@@ -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) [off-list ref]