]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Non-consuming read for trace remotes with an offline CPU
authorVincent Donnefort <vdonnefort@google.com>
Wed, 1 Apr 2026 04:50:59 +0000 (05:50 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 2 Apr 2026 13:16:09 +0000 (14:16 +0100)
commitce47b798ed1e44a6ae2c2966cdf7cba6b428083e
treeb1b7251f7040955af6dd799ac12109d39a9b6dab
parent58b4bd18390ec3118d8577e19bdee0d01d40c31e
tracing: Non-consuming read for trace remotes with an offline CPU

When a trace_buffer is created while a CPU is offline, this CPU is
cleared from the trace_buffer CPU mask, preventing the creation of a
non-consuming iterator (ring_buffer_iter). For trace remotes, it means
the iterator fails to be allocated (-ENOMEM) even though there are
available ring buffers in the trace_buffer.

For non-consuming reads of trace remotes, skip missing ring_buffer_iter
to allow reading the available ring buffers.

Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260401045100.3394299-2-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
kernel/trace/trace_remote.c