]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/kallsyms: filter symbols not in kernel address space
authorMing Lei <tom.leiming@gmail.com>
Fri, 1 Nov 2013 22:41:33 +0000 (09:11 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 1 Nov 2013 22:43:02 +0000 (09:13 +1030)
commit2fc875bec8e45a01ec2d5cd0c9f0c367a520ab6a
tree20541922629260f7e48eaacc9c5e590d33a461c4
parent7342222e5af4c03e0c67b67774e328946e4c7b5d
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 8e581d6d70388a3ea3aca303eacf3152b93937e2)

Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@vger.kernel.org
scripts/kallsyms.c
scripts/link-vmlinux.sh