]> git.baikalelectronics.ru Git - kernel.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)
commit95537983779ebe193f1dcb2cc0bd758d3de7ab0e
tree13bbad50aa8d4dc36d630ef08886876f4dc0b6eb
parenta6ae62ec606135b4588fab28bfd88c1a389d862f
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