public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Wink Saville" <wink@saville.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 5/7] Add trec_snapshot and trec_print_snapshot to die()
Date: Tue, 20 Mar 2007 23:49:56 -0700	[thread overview]
Message-ID: <d4cf37a60703202349o7ef0273erefa598efad4bb09e@mail.gmail.com> (raw)

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

                 reply	other threads:[~2007-03-21  6:49 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=d4cf37a60703202349o7ef0273erefa598efad4bb09e@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