Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp632499ybl; Fri, 13 Dec 2019 02:06:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxuPn9ZTNw2vfUxE0WwxieNZs7xrWjAJaj+Ps6XqaQiJnu+5aihw/NMyv1BfEHzzvxPMPXc X-Received: by 2002:a9d:7c91:: with SMTP id q17mr13253893otn.70.1576231565521; Fri, 13 Dec 2019 02:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576231565; cv=none; d=google.com; s=arc-20160816; b=W71ChssjRqrM2ncBlvcRYIak1/WiDnJsasScTI6SUrBnA4PtEu5Rq5ZJM0aGVm4QVU ODbdsluRzFdei2q+sSWBFHSYbkLqt3fQ2/W5gRyn19i8gAwWS7Ok01JlJOsp23CPjwgs Og28ZygnV6NLx99Td3ZkK4SmksrOxNVuxR7d9kYu7wDl1pY63rfoiR46+2a4l4hTYPTN uGQsHTJJ3H+hcpslDLH6aQlj1VQXQOlnLiQGBZ0YwIDYG77EYelzY0iRjaK8S2GkG7E8 v+32uxXJsN26lAWXDpzMpPWmXOKOOJJ8xECtmUjRiNrVeHGXUqsvojiModF3DU7CTbf2 fUqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=aK7tGKsrov05f6IAOQa69Dy8qLgKaYgSUTCdIwWOWMY=; b=q/xetO+Haqqwg2VCblsFPy1xDdifwx6ymcpJ8tfgATOuGxyjIPyYPpas/ggeOXpyKY Gyp9A2toffzs+Xzhg/ocT2eLFLDLlCQH8W2tilhJRMh45N51yFCEidmTBuxM7bgoD+Xy 2ohs8lmBRS8h8tXTLFfbBIyZ+sCyPOIHOcuRHhE1YdFtCDAFUEw13iUYGkmOSbJYfyHz XOMiL9CVPsYZo50AiV3vIkDPqM607nbS83y2XEJgLGW7Cv2XCqg0AZSTZa6li2RPH3PU WniAnZLkG02g15ZAjblOpm1kuK3yP1qwpU7nh3Be9w9ZjQNpMO/Za3Ocx+EhOpByP9Ss xicA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si4863280otk.60.2019.12.13.02.05.50; Fri, 13 Dec 2019 02:06:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726762AbfLMKDx (ORCPT + 99 others); Fri, 13 Dec 2019 05:03:53 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:47770 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbfLMKDx (ORCPT ); Fri, 13 Dec 2019 05:03:53 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ifhnN-0008KJ-MA; Fri, 13 Dec 2019 11:03:37 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 340CA1C0051; Fri, 13 Dec 2019 11:03:37 +0100 (CET) Date: Fri, 13 Dec 2019 10:03:37 -0000 From: "tip-bot2 for Shile Zhang" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/objtool] x86/unwind/orc: Remove boot-time ORC unwind tables sorting Cc: Shile Zhang , "Peter Zijlstra (Intel)" , Josh Poimboeuf , Masahiro Yamada , linux-kbuild@vger.kernel.org, Ingo Molnar , x86 , LKML In-Reply-To: <20191204004633.88660-8-shile.zhang@linux.alibaba.com> References: <20191204004633.88660-8-shile.zhang@linux.alibaba.com> MIME-Version: 1.0 Message-ID: <157623141704.30329.9522840249744393883.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/objtool branch of tip: Commit-ID: f14bf6a350dfd6613dbf91be5b423bc7eab690da Gitweb: https://git.kernel.org/tip/f14bf6a350dfd6613dbf91be5b423bc7eab690da Author: Shile Zhang AuthorDate: Wed, 04 Dec 2019 08:46:33 +08:00 Committer: Ingo Molnar CommitterDate: Fri, 13 Dec 2019 10:47:58 +01:00 x86/unwind/orc: Remove boot-time ORC unwind tables sorting 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: Shile Zhang Acked-by: Peter Zijlstra (Intel) Cc: Josh Poimboeuf Cc: Masahiro Yamada Cc: Peter Zijlstra Cc: linux-kbuild@vger.kernel.org Link: https://lkml.kernel.org/r/20191204004633.88660-8-shile.zhang@linux.alibaba.com Signed-off-by: Ingo Molnar --- arch/x86/kernel/unwind_orc.c | 8 +++++--- scripts/link-vmlinux.sh | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c index 332ae65..abdf891 100644 --- a/arch/x86/kernel/unwind_orc.c +++ b/arch/x86/kernel/unwind_orc.c @@ -273,9 +273,11 @@ void __init unwind_init(void) return; } - /* Sort the .orc_unwind and .orc_unwind_ip tables: */ - sort(__start_orc_unwind_ip, num_entries, sizeof(int), orc_sort_cmp, - orc_sort_swap); + /* + * Note, the orc_unwind and orc_unwind_ip tables were already + * 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: */ lookup_num_blocks = orc_lookup_end - orc_lookup; diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index a81aa76..c287ad9 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -306,7 +306,10 @@ vmlinux_link vmlinux "${kallsymso}" ${btf_vmlinux_bin_o} if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then info SORTTAB vmlinux - sorttable vmlinux + if ! sorttable vmlinux; then + echo >&2 Failed to sort kernel tables + exit 1 + fi fi info SYSMAP System.map