tracing: Warn on output if the function tracer was found corrupted
[linux-2.6-block.git] / kernel / trace / ftrace.c
index c3e4575e7829e1e807652ff2bc86fd0220d1a8a8..077d85387908812fc699e98b1c4d8fc6362ff6b9 100644 (file)
@@ -3862,6 +3862,14 @@ void ftrace_kill(void)
        clear_ftrace_function();
 }
 
+/**
+ * Test if ftrace is dead or not.
+ */
+int ftrace_is_dead(void)
+{
+       return ftrace_disabled;
+}
+
 /**
  * register_ftrace_function - register a function for profiling
  * @ops - ops structure that holds the function for profiling.