These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / kernel / trace / trace_benchmark.c
index 40a14cb..0f109c4 100644 (file)
@@ -43,7 +43,7 @@ static void trace_do_benchmark(void)
        unsigned int std = 0;
 
        /* Only run if the tracepoint is actually active */
-       if (!trace_benchmark_event_enabled())
+       if (!trace_benchmark_event_enabled() || !tracing_is_on())
                return;
 
        local_irq_disable();