From: Sam Ravnborg <sam@ravnborg.org>
To: Keith Owens <kaos@sgi.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [patch 2.6.10-rc1] Include useful absolute symbols in kallsyms
Date: Sun, 31 Oct 2004 01:15:38 +0200 [thread overview]
Message-ID: <20041030231538.GD9592@mars.ravnborg.org> (raw)
In-Reply-To: <19397.1099042621@kao2.melbourne.sgi.com>
On Fri, Oct 29, 2004 at 07:37:01PM +1000, Keith Owens wrote:
> Some absolute symbols are useful, they can even appear in back traces.
> Tweak kallsyms to retain the useful absolute symbols.
>
> Signed-off-by: Keith Owens <kaos@sgi.com>
>
> ---
>
> This list is from ia64, add absolute symbols from other architectures
> as required.
I've applied the following patch (clash with some arm changes):
===== scripts/kallsyms.c 1.14 vs edited =====
--- 1.14/scripts/kallsyms.c 2004-10-08 17:34:20 +02:00
+++ edited/scripts/kallsyms.c 2004-10-31 01:12:45 +02:00
@@ -132,7 +132,17 @@
_sinittext = s->addr;
else if (strcmp(str, "_einittext") == 0)
_einittext = s->addr;
- else if (toupper(s->type) == 'A' || toupper(s->type) == 'U' ||
+ else if (toupper(s->type) == 'A')
+ {
+ /* Keep these useful absolute symbols */
+ if (strcmp(str, "__kernel_syscall_via_break") &&
+ strcmp(str, "__kernel_syscall_via_epc") &&
+ strcmp(str, "__kernel_sigtramp") &&
+ strcmp(str, "__gp"))
+ return -1;
+
+ }
+ else if (toupper(s->type) == 'U' ||
is_arm_mapping_symbol(str))
return -1;
prev parent reply other threads:[~2004-10-30 21:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-29 9:37 Keith Owens
2004-10-30 23:15 ` Sam Ravnborg [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=20041030231538.GD9592@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@osdl.org \
--cc=kaos@sgi.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®