• Steven Rostedt's avatar
    tracing: disable tracing while testing ring buffer · 0c5119c1
    Steven Rostedt authored
    Impact: fix to prevent hard lockup on self tests
    
    If one of the tracers are broken and is constantly filling the ring
    buffer while the test of the ring buffer is running, it will hang
    the box. The reason is that the test is a consumer that will not
    stop till the ring buffer is empty. But if the tracer is broken and
    is constantly producing input to the buffer, this test will never
    end. The result is a lockup of the box.
    
    This happened when KALLSYMS was not defined and the dynamic ftrace
    test constantly filled the ring buffer, because the filter failed
    and all functions were being traced. Something was being called
    that constantly filled the buffer.
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    0c5119c1
trace_selftest.c 13 KB