panic: use error_report_end tracepoint on warnings
[linux-2.6-microblaze.git] / kernel / panic.c
index cefd7d8..8e299ca 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/bug.h>
 #include <linux/ratelimit.h>
 #include <linux/debugfs.h>
+#include <trace/events/error_report.h>
 #include <asm/sections.h>
 
 #define PANIC_TIMER_STEP 100
@@ -609,6 +610,7 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
        print_irqtrace_events(current);
 
        print_oops_end_marker();
+       trace_error_report_end(ERROR_DETECTOR_WARN, (unsigned long)caller);
 
        /* Just a warning, don't kill lockdep. */
        add_taint(taint, LOCKDEP_STILL_OK);