]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ftrace: disable tracing on failure
authorSteven Rostedt <srostedt@redhat.com>
Mon, 12 May 2008 19:20:48 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 18:54:16 +0000 (20:54 +0200)
commit4eebcc81a33fbc45e28542b50197ed7b3c486d90
tree13bbad50aa8d4dc36d630ef08886876f4dc0b6eb
parent37ad508419f0fdfda7b378756eb1f35cfd26d96d
ftrace: disable tracing on failure

Since ftrace touches practically every function. If we detect any
anomaly, we want to fully disable ftrace. This patch adds code
to try shutdown ftrace as much as possible without doing any more
harm is something is detected not quite correct.

This only kills ftrace, this patch does have checks for other parts of
the tracer (irqsoff, wakeup, etc.).

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/ftrace.h
kernel/trace/ftrace.c
kernel/trace/trace_selftest.c