]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Have trace_array keep track if snapshot buffer is allocated
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>
Tue, 5 Mar 2013 23:25:02 +0000 (18:25 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:35:48 +0000 (00:35 -0400)
commit3b04789844a19392f820e6f3152386eaf39a65b5
tree7bc01dd23c577dae038281be2f644ef3e3e1354e
parent74bff02ee4176b5fd60308ec7b4483559c03122a
tracing: Have trace_array keep track if snapshot buffer is allocated

The snapshot buffer belongs to the trace array not the tracer that is
running. The trace array should be the data structure that keeps track
of whether or not the snapshot buffer is allocated, not the tracer
desciptor. Having the trace array keep track of it makes modifications
so much easier.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h