From c0eabcb2cebd73e860fe09ffe4b33facc39c2644 Mon Sep 17 00:00:00 2001 From: Pratik Patel Date: Sun, 2 Dec 2012 21:15:05 -0800 Subject: [PATCH] coresight: abort coresight tracing on kernel panic Calling coresight_abort() on kernel panic will stop/disable the current sink and dump other necessary info to aid post crash analysis. Change-Id: I9d1b0ab2ba9d1a665727ea436df0c906fc80dab7 Signed-off-by: Pratik Patel --- kernel/panic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/panic.c b/kernel/panic.c index 8c6babcf898..4716d16a0a6 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -23,6 +23,7 @@ #include #include #include +#include #define PANIC_TIMER_STEP 100 #define PANIC_BLINK_SPD 18 @@ -80,6 +81,7 @@ void panic(const char *fmt, ...) long i, i_next = 0; int state = 0; + coresight_abort(); /* * Disable local interrupts. This will prevent panic_smp_self_stop * from deadlocking the first cpu that invokes the panic, since