]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Remove the backup instance automatically after read
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 1 Apr 2026 06:37:57 +0000 (15:37 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 2 Apr 2026 17:22:30 +0000 (13:22 -0400)
commiteca33fdab47b61dd7341178cf8c693ae51f5e67b
treeba8e232853b409a17d66be548cb42cb91924c416
parent2c79da099aac174e1c0e8e22b249f49e9256e966
tracing: Remove the backup instance automatically after read

Since the backup instance is readonly, after reading all data via pipe, no
data is left on the instance. Thus it can be removed safely after closing
all files.  This also removes it if user resets the ring buffer manually
via 'trace' file.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/177502547711.1311542.12572973358010839400.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h