• Steven Rostedt's avatar
    tracing: make tracing_reset safe for external use · f633903a
    Steven Rostedt authored
    Reseting the trace buffer without first disabling the buffer and
    waiting for any writers to complete, can corrupt the ring buffer.
    This patch makes the external version of tracing_reset safe from
    corruption by disabling the ring buffer and calling synchronize_sched.
    This version can no longer be called from interrupt context. But all those
    callers have been removed.
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
trace.c 96.7 KB