]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Allow perf to read synthetic events
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 13 May 2026 19:00:07 +0000 (15:00 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 21 May 2026 22:03:07 +0000 (18:03 -0400)
commitbb4613842e8033a714bacf3b62cc70638926cdcf
tree39d8fae7206ddbb95d16f92c688d6e043607d6ad
parent5307505fe7937358c426e19af8686928581b4c6e
tracing: Allow perf to read synthetic events

Currently, perf can not enable synthetic events. When it does, it either
causes a warning in the kernel or errors with "no such device".

Add the necessary code to allow perf to also attach to synthetic events.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://patch.msgid.link/20260513150007.3b280e87@gandalf.local.home
Reported-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_synth.c