diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-12-16 04:31:07 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-12-23 05:37:46 +0100 |
commit | d716ff71dd12bc6328f84a9ec1c3647daf01c827 (patch) | |
tree | 28b94a30daa2270dc14f782f6bb93dcb0c2a1429 /kernel/trace/trace_printk.c | |
parent | tracing: Add ref count to tracer for when they are being read by pipe (diff) | |
download | linux-d716ff71dd12bc6328f84a9ec1c3647daf01c827.tar.xz linux-d716ff71dd12bc6328f84a9ec1c3647daf01c827.zip |
tracing: Remove taking of trace_types_lock in pipe files
Taking the global mutex "trace_types_lock" in the trace_pipe files
causes a bottle neck as most the pipe files can be read per cpu
and there's no reason to serialize them.
The current_trace variable was given a ref count and it can not
change when the ref count is not zero. Opening the trace_pipe
files will up the ref count (and decremented on close), so that
the lock no longer needs to be taken when accessing the
current_trace variable.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_printk.c')
0 files changed, 0 insertions, 0 deletions