]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Reset last_boot_info if ring buffer is reset
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 10 Feb 2026 08:43:43 +0000 (17:43 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 11 Feb 2026 15:49:48 +0000 (10:49 -0500)
commit804c4a2209bcf6ed4c45386f033e4d0f7c5bfda5
tree1cece8c3e905f2ca8f0f5eb3b4e8dfd6311abc45
parentf844282deed7481cf2f813933229261e27306551
tracing: Reset last_boot_info if ring buffer is reset

Commit 32dc0042528d ("tracing: Reset last-boot buffers when reading
out all cpu buffers") resets the last_boot_info when user read out
all data via trace_pipe* files. But it is not reset when user
resets the buffer from other files. (e.g. write `trace` file)

Reset it when the corresponding ring buffer is reset too.

Cc: stable@vger.kernel.org
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/177071302364.2293046.17895165659153977720.stgit@mhiramat.tok.corp.google.com
Fixes: 32dc0042528d ("tracing: Reset last-boot buffers when reading out all cpu buffers")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c