* [PATCH 5/7] Add trec_snapshot and trec_print_snapshot to die()
@ 2007-03-21 6:49 Wink Saville
0 siblings, 0 replies; only message in thread
From: Wink Saville @ 2007-03-21 6:49 UTC (permalink / raw)
To: linux-kernel
Signed-off-by: Wink Saville <wink@saville.com>
---
arch/x86_64/kernel/traps.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 09d2e8a..c730176 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -33,6 +33,10 @@
#include <linux/uaccess.h>
#include <linux/bug.h>
+#ifdef CONFIG_TREC
+#include <linux/trec.h>
+#endif
+
#include <asm/system.h>
#include <asm/io.h>
#include <asm/atomic.h>
@@ -547,9 +551,17 @@ void die(const char * str, struct pt_regs * regs, long err)
{
unsigned long flags = oops_begin();
+#ifdef CONFIG_TREC
+ trec_snapshot();
+#endif
+
if (!user_mode(regs))
report_bug(regs->rip);
+#ifdef CONFIG_TREC
+ trec_print_snapshot();
+#endif
+
__die(str, regs, err);
oops_end(flags);
do_exit(SIGSEGV);
--
1.5.0.rc2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-21 6:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 6:49 [PATCH 5/7] Add trec_snapshot and trec_print_snapshot to die() Wink Saville
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.