summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-09-04 08:25:04 +0900
committerSteven Rostedt <rostedt@goodmis.org>2026-09-04 11:44:40 -0400
commitd7dbdd2ee01e12211046d4a535623ac732b749fb (patch)
treecf22916b8da8b89416de8bdbfe93cb7127c37267 /include
parent6c001a62c34f13fe1c6a24304c289b387d9e697d (diff)
downloadlinux-2.6-d7dbdd2ee01e12211046d4a535623ac732b749fb.tar.gz
linux-2.6-d7dbdd2ee01e12211046d4a535623ac732b749fb.zip
tracing: Fix to avoid creating trace instances with duplicate names
Since commit e645535a954a ("tracing: Add option to use memmapped memory for trace boot instance") changed trace_array_get_by_name() to trace_array_create_systems(), enable_instances() does not reuse the same name instance. Therefore, if an administrator mistakenly specifies multiple `trace_instance=` options with duplicate names, all are created but only the first is accessible via tracefs. Check whether an instance with the same name already exists before creating a new one, and reject duplicates with a warning. Link: https://patch.msgid.link/178847790399.283263.5313150997200138426.stgit@devnote2 Fixes: e645535a954a ("tracing: Add option to use memmapped memory for trace boot instance") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions