]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tracing: Add ioctl() to force ring buffer waiters to wake up
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 29 Sep 2022 13:50:29 +0000 (09:50 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 24 Nov 2022 13:24:08 +0000 (14:24 +0100)
commit5c4b9c606f3102fb17539429e4320a611db5ed80
tree2c435e956cb5c13465d11f060197b0e14786b933
parent31bcbbfe80c026936bb38666f73c66066be20a7b
tracing: Add ioctl() to force ring buffer waiters to wake up

BugLink: https://bugs.launchpad.net/bugs/1996825
commit 01b2a52171735c6eea80ee2f355f32bea6c41418 upstream.

If a process is waiting on the ring buffer for data, there currently isn't
a clean way to force it to wake up. Add an ioctl call that will force any
tasks that are waiting on the trace_pipe_raw file to wake up.

Link: https://lkml.kernel.org/r/20220929095029.117f913f@gandalf.local.home
Cc: stable@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: e30f53aad2202 ("tracing: Do not busy wait in buffer splice")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/trace/trace.c