ftrace: only trace preempt off with preempt tracer
commit1e01cb0c6ff7e9ddb6547551794c6aa82785a7cb
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 15 Jul 2008 13:53:37 +0000 (15 09:53 -0400)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 16:57:34 +0000 (18 18:57 +0200)
tree791ecc834a169f6e3d7322a0c285dd95e9cd0c31
parente59494f441c834ca7aaa0e6fa6678ddbd3d72743
ftrace: only trace preempt off with preempt tracer

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: Steven 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: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_irqsoff.c