linux/kernel/trace
Steven Rostedt 4fe8c3048c ftrace: printk and trace irqsoff and wakeups
printk called from wakeup critical timings and irqs off can
cause deadlocks since printk might do a wakeup itself. If the
call to printk happens with the runqueue lock held, it can
deadlock.

This patch protects the printk from being called in trace irqs off
with a test to see if the runqueue for the current CPU is locked.
If it is locked, the printk is skipped.

The wakeup always holds the runqueue lock, so the printk is
simply removed.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-05-23 21:13:02 +02:00
..
ftrace.c ftrace: remove notrace 2008-05-23 20:58:28 +02:00
Kconfig ftrace: make it more available in the Kconfig 2008-05-23 21:12:26 +02:00
Makefile ftrace: disable -pg for the tracer itself 2008-05-23 20:56:53 +02:00
trace_functions.c ftrace: remove notrace 2008-05-23 20:58:28 +02:00
trace_irqsoff.c ftrace: printk and trace irqsoff and wakeups 2008-05-23 21:13:02 +02:00
trace_sched_switch.c ftrace: sched special 2008-05-23 21:08:47 +02:00
trace_sched_wakeup.c ftrace: printk and trace irqsoff and wakeups 2008-05-23 21:13:02 +02:00
trace_selftest.c ftrace: add wakeup events to sched tracer 2008-05-23 21:04:06 +02:00
trace.c ftrace: remove wakeup from function trace 2008-05-23 21:12:48 +02:00
trace.h ftrace: trace next state 2008-05-23 21:08:54 +02:00