From: Chuck Ebbert <76306.1226@compuserve.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>
Subject: [patch] i386: print NUMA in oops messages
Date: Mon, 5 Jun 2006 23:01:14 -0400 [thread overview]
Message-ID: <200606052303_MC3-1-C1B2-7E2C@compuserve.com> (raw)
Print "NUMA" in oops messages if it is configured, since it makes a big
difference now that NUMA-aware code is common in the kernel. "SMP"
could be removed since all NUMA machines are SMP, but it's probably
better to be backwards-compatible.
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
---
Applies after previous patch that added stack size printout.
arch/i386/kernel/traps.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
--- 2.6.17-rc5-32.orig/arch/i386/kernel/traps.c
+++ 2.6.17-rc5-32/arch/i386/kernel/traps.c
@@ -368,16 +368,21 @@ void die(const char * str, struct pt_reg
handle_BUG(regs);
printk(KERN_EMERG "%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter);
printk(KERN_EMERG "%dK_STACKS ", THREAD_SIZE / 1024);
+ printk(
#ifdef CONFIG_PREEMPT
- printk("PREEMPT ");
+ "PREEMPT "
#endif
#ifdef CONFIG_SMP
- printk("SMP ");
+ "SMP "
+#endif
+#ifdef CONFIG_NUMA
+ "NUMA "
#endif
#ifdef CONFIG_DEBUG_PAGEALLOC
- printk("DEBUG_PAGEALLOC");
+ "DEBUG_PAGEALLOC"
#endif
- printk("\n");
+ "\n");
+
if (notify_die(DIE_OOPS, str, regs, err,
current->thread.trap_no, SIGSEGV) !=
NOTIFY_STOP) {
--
Chuck
next reply other threads:[~2006-06-06 3:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-06 3:01 Chuck Ebbert [this message]
2006-06-06 4:18 ` Andrew Morton
2006-06-06 4:54 ` Arjan van de Ven
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=200606052303_MC3-1-C1B2-7E2C@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®