From: Steven Rostedt (Red Hat) Date: Tue, 16 Dec 2014 01:13:31 +0000 (-0500) Subject: tracing: Add ref count to tracer for when they are being read by pipe X-Git-Tag: fixes-v4.0-rc1~127^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6ab6d9143b157786bf29bca5c32e55234bb07d;p=pandora-kernel.git 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 --- Reading git-diff-tree failed