* [patch 2.6.10-rc1] Include useful absolute symbols in kallsyms
@ 2004-10-29 9:37 Keith Owens
2004-10-30 23:15 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Keith Owens @ 2004-10-29 9:37 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm
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.
Index: linux/scripts/kallsyms.c
===================================================================
--- linux.orig/scripts/kallsyms.c Fri Oct 29 17:01:13 2004
+++ linux/scripts/kallsyms.c Fri Oct 29 18:31:05 2004
@@ -121,7 +121,14 @@ read_symbol(FILE *in, struct sym_entry *
_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')
return -1;
/* include the type field in the symbol name, so that it gets
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 2.6.10-rc1] Include useful absolute symbols in kallsyms
2004-10-29 9:37 [patch 2.6.10-rc1] Include useful absolute symbols in kallsyms Keith Owens
@ 2004-10-30 23:15 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2004-10-30 23:15 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel, akpm
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-30 21:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-29 9:37 [patch 2.6.10-rc1] Include useful absolute symbols in kallsyms Keith Owens
2004-10-30 23:15 ` Sam Ravnborg
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®