mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Wink Saville" <wink@saville.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 6/7] Added trec_snapshot and trec_print_snapshot to do_page_fault() when the kernel itself faults
Date: Tue, 20 Mar 2007 23:50:47 -0700	[thread overview]
Message-ID: <d4cf37a60703202350p2e24c805oe84f3459fda0c0a9@mail.gmail.com> (raw)

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

                 reply	other threads:[~2007-03-21  6:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4cf37a60703202350p2e24c805oe84f3459fda0c0a9@mail.gmail.com \
    --to=wink@saville.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®