提交 badd79c4 编写于 作者: S Shile Zhang 提交者: Yang Yingliang

x86/unwind/orc: Remove boot-time ORC unwind tables sorting

mainline inclusion
from mainline-v5.6-rc1
commit f14bf6a3
category: feature
bugzilla: NA
CVE: NA

-------------------------------------------------

Now that the orc_unwind and orc_unwind_ip tables are sorted at build time,
remove the boot time sorting pass.

No change in functionality.

[ mingo: Rewrote the changelog and code comments. ]
Signed-off-by: NShile Zhang <shile.zhang@linux.alibaba.com>
Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kbuild@vger.kernel.org
Link: https://lkml.kernel.org/r/20191204004633.88660-8-shile.zhang@linux.alibaba.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NJian Cheng <cj.chengjian@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2f25dcd2
...@@ -262,9 +262,11 @@ void __init unwind_init(void) ...@@ -262,9 +262,11 @@ void __init unwind_init(void)
return; return;
} }
/* Sort the .orc_unwind and .orc_unwind_ip tables: */ /*
sort(__start_orc_unwind_ip, num_entries, sizeof(int), orc_sort_cmp, * Note, the orc_unwind and orc_unwind_ip tables were already
orc_sort_swap); * sorted at build time via the 'sorttable' tool.
* It's ready for binary search straight away, no need to sort it.
*/
/* Initialize the fast lookup table: */ /* Initialize the fast lookup table: */
lookup_num_blocks = orc_lookup_end - orc_lookup; lookup_num_blocks = orc_lookup_end - orc_lookup;
......
...@@ -286,7 +286,10 @@ vmlinux_link "${kallsymso}" vmlinux ...@@ -286,7 +286,10 @@ vmlinux_link "${kallsymso}" vmlinux
if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then
info SORTTAB vmlinux info SORTTAB vmlinux
sorttable vmlinux if ! sorttable vmlinux; then
echo >&2 Failed to sort kernel tables
exit 1
fi
fi fi
info SYSMAP System.map info SYSMAP System.map
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册