summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_sched_switch.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-12-15 20:13:31 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-12-22 15:39:40 -0500
commitcf6ab6d9143b157786bf29bca5c32e55234bb07d (patch)
treea0c044f2bc377065ba823d08fbb33cb212c0148b /kernel/trace/trace_sched_switch.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
tracing: Add ref count to tracer for when they are being read by pipe
When one of the trace pipe files are being read (by either the trace_pipe or trace_pipe_raw), do not allow the current_trace to change. By adding a ref count that is incremented when the pipe files are opened, will prevent the current_trace from being changed. This will allow for the removal of the global trace_types_lock from reading the pipe buffers (which is currently a bottle neck). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
0 files changed, 0 insertions, 0 deletions