[patch-rt 5/5] trace: warn if irqs already enabled in irqs_offlatency check

From: Thomas Gleixner
Date: Fri Jan 30 2009 - 06:45:29 EST


Be consistent: Warn if irqs are already enabled in irqs_off latency
processing, same as in preempt_off and in irqs_off && preempt_off. This
warning can now safely be inserted, after a problem was fixed that
caused false positives.

Signed-off-by: Carsten Emde <C.Emde@xxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>


---
kernel/trace/trace_hist.c | 1 +
1 file changed, 1 insertion(+)

Index: linux-2.6.26.8/kernel/trace/trace_hist.c
===================================================================
--- linux-2.6.26.8.orig/kernel/trace/trace_hist.c
+++ linux-2.6.26.8/kernel/trace/trace_hist.c
@@ -356,6 +356,7 @@ notrace void tracing_hist_preempt_stop(i
#ifdef CONFIG_INTERRUPT_OFF_HIST
if (irqs_on &&
per_cpu(hist_irqsoff_tracing, cpu)) {
+ WARN_ON(!irqs_disabled());
stop = ftrace_now(cpu);
stop_set++;
start = per_cpu(hist_irqsoff_start, cpu);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/