From: Steven Rostedt Date: Mon, 16 Apr 2012 19:41:28 +0000 (-0400) Subject: tracing: Fix regression with tracing_on X-Git-Tag: v3.4-rc5~18^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=348f0fc238efb441a28e7644c51f9fd3001b228a;p=pandora-kernel.git tracing: Fix regression with tracing_on The change to make tracing_on affect only the ftrace ring buffer, caused a bug where it wont affect any ring buffer. The problem was that the buffer of the trace_array was passed to the write function and not the trace array itself. The trace_array can change the buffer when running a latency tracer. If this happens, then the buffer being disabled may not be the buffer currently used by ftrace. This will cause the tracing_on file to become useless. The simple fix is to pass the trace_array to the write function instead of the buffer. Then the actual buffer may be changed. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed