public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Alpha print the symbol name in Oops
@ 2004-07-08  5:34 Aneesh Kumar
  2004-07-08  7:15 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Aneesh Kumar @ 2004-07-08  5:34 UTC (permalink / raw)
  To: rth, ink; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

Hi,

This makes Alpha to print the symbol name in a Oops message.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>

-aneesh

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: traps.c.diff --]
[-- Type: text/x-patch; name="traps.c.diff", Size: 920 bytes --]

--- traps.c	2004-07-08 10:55:36.000000000 +0530
+++ /tmp/traps.c	2004-07-08 10:55:23.000000000 +0530
@@ -14,10 +14,11 @@
 #include <linux/tty.h>
 #include <linux/delay.h>
 #include <linux/smp_lock.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/kallsyms.h>
 
 #include <asm/gentrap.h>
 #include <asm/uaccess.h>
 #include <asm/unaligned.h>
 #include <asm/sysinfo.h>
@@ -117,20 +118,21 @@
 
 static void
 dik_show_trace(unsigned long *sp)
 {
 	long i = 0;
-	printk("Trace:");
+	printk("Trace:\n");
 	while (0x1ff8 & (unsigned long) sp) {
 		extern char _stext[], _etext[];
 		unsigned long tmp = *sp;
 		sp++;
 		if (tmp < (unsigned long) &_stext)
 			continue;
 		if (tmp >= (unsigned long) &_etext)
 			continue;
-		printk("%lx%c", tmp, ' ');
+		printk("[<%lx>]", tmp);
+		print_symbol(" %s\n", tmp);
 		if (i > 40) {
 			printk(" ...");
 			break;
 		}
 	}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-08  9:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-08  5:34 [PATCH] Alpha print the symbol name in Oops Aneesh Kumar
2004-07-08  7:15 ` Andrew Morton
2004-07-08  9:16   ` Aneesh Kumar
2004-07-08  9:19     ` Andrew Morton
2004-07-08  9:19     ` Aneesh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox