]> git.baikalelectronics.ru Git - 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)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 29 Sep 2022 14:17:18 +0000 (10:17 -0400)
commit92dfecb129b1a16441ef5db467ed39e3c45699a8
treedaa9d3bb9f277cad521a324f7be355b077740122
parent2ff7b210b255228658d774ed69b1976087999e7d
tracing: Add ioctl() to force ring buffer waiters to wake up

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: e3d3ed5fb5a15 ("tracing: Do not busy wait in buffer splice")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c