tracing: Have trace_array keep track if snapshot buffer is allocated
[firefly-linux-kernel-4.4.55.git] / kernel / trace / trace.h
index 986834f1f4dde6385e1080f57dde6f73a9916122..1a456c291a07413a81df9796f4b0fcbbd76d42fe 100644 (file)
@@ -197,6 +197,7 @@ struct trace_array {
         * the trace_buffer so the tracing can continue.
         */
        struct trace_buffer     max_buffer;
+       bool                    allocated_snapshot;
 #endif
        int                     buffer_disabled;
        struct trace_cpu        trace_cpu;      /* place holder */
@@ -367,7 +368,6 @@ struct tracer {
        bool                    enabled;
 #ifdef CONFIG_TRACER_MAX_TRACE
        bool                    use_max_tr;
-       bool                    allocated_snapshot;
 #endif
 };