Skip to contentSkip to conversation

Add trec_snapshot and trec_print_snapshot in panic()

PATCH In review Wink Saville 1 participant 1 message Mar 21, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 Add trec_snapshot and trec_print_snapshot in panic()

---
kernel/panic.c | 12 ++++++++++++

1 files changed, 12 insertions(+), 0 deletions(-)
kernel/panic.c +0 -0
index 623d182..64a047e 100644
@@ -20,6 +20,10 @@

#include <linux/kexec.h>
#include <linux/debug_locks.h>

+#ifdef CONFIG_TREC
+#include <linux/trec.h>
+#endif
+
int panic_on_oops;
int tainted;
static int pause_on_oops;
@@ -66,6 +70,10 @@ NORET_TYPE void panic(const char * fmt, ...)

        unsigned long caller = (unsigned long) __builtin_return_address(0);

#endif

+#ifdef CONFIG_TREC
+ trec_snapshot();
+#endif
+
/*
* It's possible to come here directly from a panic-assertion and not
* have preempt disabled. Some functions called from here want
@@ -96,6 +104,10 @@ NORET_TYPE void panic(const char * fmt, ...)

	smp_send_stop();

#endif

+#ifdef CONFIG_TREC
+ trec_print_snapshot();
+#endif
+

	atomic_notifier_call_chain(&panic_notifier_list, 0, buf);

	if (!panic_blink)
Signature · 1 line
1.5.0.rc2