scripts/kallsyms: filter symbols not in kernel address space
authorMing Lei <[email protected]>
Fri, 1 Nov 2013 22:41:33 +0000 (09:11 +1030)
committerRusty Russell <[email protected]>
Fri, 1 Nov 2013 22:43:02 +0000 (09:13 +1030)
commitf6537f2f0eba4eba3354e48dbe3047db6d8b6254
tree20541922629260f7e48eaacc9c5e590d33a461c4
parent12aee278b50c4a94a93fa0b4d201ae35d792c696
scripts/kallsyms: filter symbols not in kernel address space

This patch uses CONFIG_PAGE_OFFSET to filter symbols which
are not in kernel address space because these symbols are
generally for generating code purpose and can't be run at
kernel mode, so we needn't keep them in /proc/kallsyms.

For example, on ARM there are some symbols which may be
linked in relocatable code section, then perf can't parse
symbols any more from /proc/kallsyms, this patch fixes the
problem (introduced b9b32bf70f2fb710b07c94e13afbc729afe221da)

Cc: Russell King <[email protected]>
Cc: [email protected]
Cc: Michal Marek <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Cc: [email protected]
scripts/kallsyms.c
scripts/link-vmlinux.sh