LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 6/7] Added trec_snapshot and trec_print_snapshot to do_page_fault() when the kernel itself faults
@ 2007-03-21  6:50 Wink Saville
  0 siblings, 0 replies; only message in thread
From: Wink Saville @ 2007-03-21  6:50 UTC (permalink / raw)
  To: linux-kernel

Signed-off-by: Wink Saville <wink@saville.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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-21  6:50 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:50 [PATCH 6/7] Added trec_snapshot and trec_print_snapshot to do_page_fault() when the kernel itself faults Wink Saville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).