]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Make the backup instance non-reusable
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 1 Apr 2026 06:37:49 +0000 (15:37 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 2 Apr 2026 17:20:38 +0000 (13:20 -0400)
commit2c79da099aac174e1c0e8e22b249f49e9256e966
treea6622da60511a221fa7bc90c5d03d4bf1e006778
parent20ad8b0888be392eb2c4c3654805eb8594952373
tracing: Make the backup instance non-reusable

Since there is no reason to reuse the backup instance, make it readonly
(but erasable).  Note that only backup instances are readonly, because
other trace instances will be empty unless it is writable.  Only backup
instances have copy entries from the original.

With this change, most of the trace control files are removed from the
backup instance, including eventfs enable/filter etc.

 # find /sys/kernel/tracing/instances/backup/events/ | wc -l
 4093
 # find /sys/kernel/tracing/instances/boot_map/events/ | wc -l
 9573

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/177502546939.1311542.1826814401724828930.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
kernel/trace/trace_boot.c
kernel/trace/trace_events.c