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)
commit45ad21ca5530efdca6a19e4a5ac5e7bd6e24f996
tree7bc01dd23c577dae038281be2f644ef3e3e1354e
parent6de58e6269cd0568ca5fbae14423914eff0f7811
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