aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKeith Owens <kaos@sgi.com>2004-06-26 20:54:33 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-26 20:54:33 -0700
commita1435049648b061567ae973dbb8fbbb1f570148f (patch)
treef3d2a2f18810da94bfe54c74dc9fb1914e1053d4 /scripts
parent5ae39e5545dd5ddd0e7cc3fa35deb13ccc315c75 (diff)
downloadhistory-a1435049648b061567ae973dbb8fbbb1f570148f.tar.gz
[PATCH] kallsyms: exclude kallsyms-generated symbols
Exclude symbols added by kallsyms itself, so .tmp_kallsyms[12].S have the same list of symbols. Signed-off-by: Keith Owens <kaos@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kallsyms.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f4b328979cd16..5d6261b8cc6ff 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -72,7 +72,15 @@ symbol_valid(struct sym_entry *s)
return 0;
}
- if (strstr(s->sym, "_compiled."))
+ /* Exclude symbols which vary between passes. Passes 1 and 2 must have
+ * identical symbol lists. The kallsyms_* symbols below are only added
+ * after pass 1, they would be included in pass 2 when --all-symbols is
+ * specified so exclude them to get a stable symbol list.
+ */
+ if (strstr(s->sym, "_compiled.") ||
+ strcmp(s->sym, "kallsyms_addresses") == 0 ||
+ strcmp(s->sym, "kallsyms_num_syms") == 0 ||
+ strcmp(s->sym, "kallsyms_names") == 0)
return 0;
return 1;