public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Aneesh Kumar <aneesh.kumar@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: rth@redhat.com, ink@jurassic.park.msu.ru, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Alpha print the symbol name in Oops
Date: Thu, 8 Jul 2004 14:49:45 +0530	[thread overview]
Message-ID: <cc723f5904070802196746d36@mail.gmail.com> (raw)
In-Reply-To: <cc723f5904070802165c127e62@mail.gmail.com>

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

On Thu, 8 Jul 2004 14:46:17 +0530, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:
> 
> 
> On Thu, 8 Jul 2004 00:15:47 -0700, Andrew Morton <akpm@osdl.org> wrote:
> > Aneesh Kumar <aneesh.kumar@gmail.com> wrote:
> > >
> > >  +            printk("[<%lx>]", tmp);
> > >  +            print_symbol(" %s\n", tmp);
> >
> > print_symbol() does nothing at all if CONFIG_KALLSYMS=n.  You probably want:
> >
> >         printk("[<%lx>]", tmp);
> >         print_symbol(" %s", tmp);
> >         printk("\n");
> >
> 
> Patch attached.
> 

Sorry  I attached a wrong patch  of the CI project :)

-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: 954 bytes --]

--- arch/alpha/kernel/traps.c	2004-07-08 10:55:36.000000000 +0530
+++ /tmp/traps.c	2004-07-08 14:45:17.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,22 @@
 
 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", tmp);
+		printk("\n");
 		if (i > 40) {
 			printk(" ...");
 			break;
 		}
 	}

      parent reply	other threads:[~2004-07-08  9:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=cc723f5904070802196746d36@mail.gmail.com \
    --to=aneesh.kumar@gmail.com \
    --cc=akpm@osdl.org \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@redhat.com \
    /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