[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d4cf37a60703202350p2e24c805oe84f3459fda0c0a9@mail.gmail.com>
Date: Tue, 20 Mar 2007 23:50:47 -0700
From: "Wink Saville" <wink@...ille.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH 6/7] Added trec_snapshot and trec_print_snapshot to do_page_fault() when the kernel itself faults
Signed-off-by: Wink Saville <wink@...ille.com>
---
arch/x86_64/mm/fault.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c
index 6ada723..9857ade 100644
--- a/arch/x86_64/mm/fault.c
+++ b/arch/x86_64/mm/fault.c
@@ -25,6 +25,10 @@
#include <linux/kprobes.h>
#include <linux/uaccess.h>
+#ifdef CONFIG_TREC
+#include <linux/trec.h>
+#endif
+
#include <asm/system.h>
#include <asm/pgalloc.h>
#include <asm/smp.h>
@@ -534,6 +538,9 @@ no_context:
*/
flags = oops_begin();
+#ifdef CONFIG_TREC
+ trec_snapshot();
+#endif
if (address < PAGE_SIZE)
printk(KERN_ALERT "Unable to handle kernel NULL pointer dereference");
@@ -548,6 +555,9 @@ no_context:
__die("Oops", regs, error_code);
/* Executive summary in case the body of the oops scrolled away */
printk(KERN_EMERG "CR2: %016lx\n", address);
+#ifdef CONFIG_TREC
+ trec_print_snapshot();
+#endif
oops_end(flags);
do_exit(SIGKILL);
--
1.5.0.rc2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists