• S
    tracing: pass around ring buffer instead of tracer · e77405ad
    Steven Rostedt 提交于
    The latency tracers (irqsoff and wakeup) can swap trace buffers
    on the fly. If an event is happening and has reserved data on one of
    the buffers, and the latency tracer swaps the global buffer with the
    max buffer, the result is that the event may commit the data to the
    wrong buffer.
    
    This patch changes the API to the trace recording to be recieve the
    buffer that was used to reserve a commit. Then this buffer can be passed
    in to the commit.
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    e77405ad
trace_sched_switch.c 6.8 KB