diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-16 15:41:28 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-04-16 15:41:28 -0400 |
commit | 348f0fc238efb441a28e7644c51f9fd3001b228a (patch) | |
tree | 780fa93c72777045a986f0ce648efc2bf8e35999 /ipc | |
parent | 6e48b550d1f5f1919e6500547ae14a73fbf66c7b (diff) | |
download | talos-obmc-linux-348f0fc238efb441a28e7644c51f9fd3001b228a.tar.gz talos-obmc-linux-348f0fc238efb441a28e7644c51f9fd3001b228a.zip |
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 <rostedt@goodmis.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions