Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2014733ybl; Tue, 3 Dec 2019 16:47:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwTioR8sdxjHLZqPK1pv7Z83uR0ME+MnCauB4wIS+mUfNnwc7VX3bR+YgyeaLzCFqdQIYbh X-Received: by 2002:a05:6830:18cd:: with SMTP id v13mr598320ote.118.1575420450461; Tue, 03 Dec 2019 16:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575420450; cv=none; d=google.com; s=arc-20160816; b=zP6TlvsX+htvMbnNbTRf3VWMbvICtqUd+rUR+0igIrw8L/hZOIP9swzUROS4tax5oJ /oG4McLhQjDrM1hJwPjGltwntO0+c/xDVpNL8xAk2+/I0DajXnrIXvyWIIG2AIYhsKDP rWpSHWJVzez7wLQrA98QLbjLzdyaZgnrljWj6/ibQ8+URjG+jayzyxko00UQEp6eLU/B wqrJyHCTl7/T/+vNx16W+v3A2A+ixaDKYDo1rqbS6LdnrzzXwo/iWIlpk4qEeNWWt0P5 ZHhD3gxb9CFa0ravuO6H8Qb+iNDbRlafg6q9MlVY6tTsLKacOv65ERgdC5KUTaAPoN63 ABaw== 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:mime-version :message-id:date:subject:cc:to:from; bh=Z2TwMSWPBYCImnOREe6XKUZTQ+PFZE2m7F86vAjrpKk=; b=qN5xwhJwQ3VuKMtgo9L2LfGrGvg/+9Myh1aV5Ft6pllWf4QPDPbCP1V+LtOQBZ17SA SfMP64SakDzJ+UMd227sppV3lL7lnKFuiXl6fWnGTLITCnLzsd6jxMtGhdVSBYGzHGLz kPOyoRTy4MhJA7A21ajUKlEk431NWi9LofZwZroUGGTH5NzVbySTmeJHp3NnYBu0Z9fK bebI6CmJvdsmwYXbVALWIXkYHZ1yWVjwgAxGvKh6eKvTQgEIIG6arGRmC5Sw61ui83RX 9g87j4V4oO9K6UKsC+SzlrSpfsKaFF3EvkSLVuXcFUYxQfKXM6uUBdE9tAtiwmurFMKW RExw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x63si2248550oif.116.2019.12.03.16.47.17; Tue, 03 Dec 2019 16:47:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726473AbfLDAqs (ORCPT + 99 others); Tue, 3 Dec 2019 19:46:48 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:47854 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfLDAqr (ORCPT ); Tue, 3 Dec 2019 19:46:47 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04446;MF=shile.zhang@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0Tjr6d8u_1575420394; Received: from e18g09479.et15sqa.tbsite.net(mailfrom:shile.zhang@linux.alibaba.com fp:SMTPD_---0Tjr6d8u_1575420394) by smtp.aliyun-inc.com(127.0.0.1); Wed, 04 Dec 2019 08:46:42 +0800 From: Shile Zhang To: Peter Zijlstra , Josh Poimboeuf , Masahiro Yamada , Michal Marek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andy Lutomirski , x86@kernel.org Cc: "H . Peter Anvin" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Shile Zhang Subject: [RFC PATCH v6 0/7] Speed booting by sorting ORC unwind tables at build time Date: Wed, 4 Dec 2019 08:46:26 +0800 Message-Id: <20191204004633.88660-1-shile.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.24.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sorry, update for compile error fix, reported by Intel's kbuild test robot. Any comments or suggestions are welcome! Thanks! Changelog: ========== v5->v6: - fix compile error reported by kbuild test robot; v4->v5: - replace sort with qsort, suggested by Andy Lutomirski ; - add error handling in link scripts; - fixed some review findings; https://lore.kernel.org/lkml/20191128110206.2107-1-shile.zhang@linux.alibaba.com/ v3->v4: - Code refactored for Peter's review findings and suggestions. https://lore.kernel.org/lkml/20191115164539.57930-1-shile.zhang@linux.alibaba.com/ v2->v3: - Discard new added sortorctable tool and related Kconfig changes. - Refactored sortextable, makes it more readable and extendable. - Rename 'sortextable' to 'sorttable', for more kernel tables extend. - Add ORC unwind tables sort into sorttable. - Remove the runtime ORC tables sort. https://lore.kernel.org/lkml/20191115064750.47888-1-shile.zhang@linux.alibaba.com/ v1->v2: - Removed new added Kconfig and runtime sort code, advised by Josh Poimboeuf. - Some minor refactoring. https://lore.kernel.org/lkml/20191108071108.72132-1-shile.zhang@linux.alibaba.com/ v1: - Added a new sortorctable tool to sort ORC unwind tables at build time, same as sortextable. - Add a new Kconfigure to control if ORC unwind tables sort at build time. https://lore.kernel.org/lkml/20191107143205.206606-1-shile.zhang@linux.alibaba.com/ Shile Zhang (7): scripts/sortextable: Rewrite error/success handling scripts/sortextable: kernel coding style formating scripts/sortextable: Remove dead code scripts/sortextable: refactor do_func() function scripts/sorttable: rename sortextable to sorttable scripts/sorttable: Add ORC unwind tables sort concurrently x86/unwind/orc: remove run-time ORC unwind tables sort arch/arc/Kconfig | 2 +- arch/arm/Kconfig | 2 +- arch/arm64/Kconfig | 2 +- arch/microblaze/Kconfig | 2 +- arch/mips/Kconfig | 2 +- arch/parisc/Kconfig | 2 +- arch/powerpc/Kconfig | 2 +- arch/s390/Kconfig | 2 +- arch/x86/Kconfig | 2 +- arch/x86/kernel/unwind_orc.c | 8 +- arch/xtensa/Kconfig | 2 +- init/Kconfig | 2 +- scripts/.gitignore | 2 +- scripts/Makefile | 13 +- scripts/link-vmlinux.sh | 13 +- scripts/sortextable.h | 209 -------------- scripts/{sortextable.c => sorttable.c} | 305 +++++++++----------- scripts/sorttable.h | 380 +++++++++++++++++++++++++ 18 files changed, 557 insertions(+), 395 deletions(-) delete mode 100644 scripts/sortextable.h rename scripts/{sortextable.c => sorttable.c} (67%) create mode 100644 scripts/sorttable.h -- 2.24.0.rc2