• Steven Rostedt (VMware)'s avatar
    ring-buffer: Make resize disable per cpu buffer instead of total buffer · 07b8b10e
    Steven Rostedt (VMware) authored
    When the ring buffer becomes writable for even when the trace file is read,
    it must still not be resized. But since tracers can be activated while the
    trace file is being read, the irqsoff tracer can modify the per CPU buffers,
    and this can cause the reader of the trace file to update the wrong buffer's
    resize disable bit, as the irqsoff tracer swaps out cpu buffers.
    
    By making the resize disable per cpu_buffer, it makes the update follow the
    per cpu_buffer even if it's swapped out with the snapshot buffer and keeps
    the release of the trace file modifying the same data as the open did.
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    07b8b10e
ring_buffer.c 140 KB