• Steven Rostedt's avatar
    ftrace: only trace preempt off with preempt tracer · 1e01cb0c
    Steven Rostedt authored
    When PREEMPT_TRACER and IRQSOFF_TRACER are both configured and irqsoff
    tracer is running, the preempt_off sections might also be traced.
    
    Thanks to Andrew Morton for pointing out my mistake of spin_lock disabling
    interrupts while he was reviewing ftrace.txt. Seems that my example I used
    actually hit this bug.
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    1e01cb0c
trace_irqsoff.c 10.5 KB