From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5D77C79FAA for ; Tue, 8 Sep 2026 20:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=asafgO1c4VXLmvRiL7Tly1pwYNlknifH/iEyMoEn4Q4=; b=wNbfa1dLCaBqFt Mv2QpJ5WNDidFgvRzlBbjYQryiZqeqNJMCW8/68aEdOT5QeITX7FnhJ8n/TMFHrkIIjZOxD0utZyS ZIUWzhuP8j9vTU4Rt/d+cagOcshhIYMcrMYPvm2JveK26Cg8o1OXbME7yLY6yIB6EqNYrnUapundh S/sE9qB90JD1EUKKaXSnqxQY9TBrUmPdINufGBnKfNBDDQiO3f+y5N3VjevP8ySCbf428rW9XBN5g gu71p7cnYAYYmx0xdNjyl+0PZaKt9d/dyrYaDp/wKY3hQglCqjQKDBby/ntDaHtxAFT/nb4VG/BFc 2q2tDpvzv3yEwFw/oCnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x42r4-0000000AEfD-2aoP; Tue, 08 Sep 2026 20:55:46 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x42r2-0000000AEeW-40Fz; Tue, 08 Sep 2026 20:55:45 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 46AAA601F6; Tue, 8 Sep 2026 20:55:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4539B1F00A3E; Tue, 8 Sep 2026 20:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788900944; bh=7lHsIzzOaaem51+m++n0/DPnuKeNqmOjNP5os70+l/E=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=gcuaImtaBdcvz4CtAgmXpjnv01updFVNTW9WrGABIcDEyojIPAOsJCbV00b87f+1y j731oQYOWTNlFnkqkt4tAP7FENM+Jea0i9yZwJaTmXdW4Jnebjt6KILmgBa79eY7Wb AYs0eoObe/OL3BO+4fv9qd775cOTxEm5cp7yekzIPAI6KSrFnuz9NBnVXpV9zj2V7f IxYOAu6NkUYoPI/Su0ZN1y6dBZDYb8K6R2cVZnwazlJ5a7h1EgyXBF2Q3hxPxb6sWD wDsVU9oltHTEIhNu+HRTNsz3Q5/Xmefqdlc2ZWGg0p6j/GsT1cQpBmQl1uwshl0ooA mWpYEDYCsfnPw== From: "Lorenzo Stoakes (ARM)" Date: Tue, 08 Sep 2026 21:55:01 +0100 Subject: [PATCH 01/23] scripts/mksysmap: drop the MODULE_INFO() symbols from kallsyms MIME-Version: 1.0 Message-Id: <20260908-build-speedup-v1-1-5dc1ac01672d@kernel.org> References: <20260908-build-speedup-v1-0-5dc1ac01672d@kernel.org> In-Reply-To: <20260908-build-speedup-v1-0-5dc1ac01672d@kernel.org> To: Linus Torvalds , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Masahiro Yamada , Alexey Gladkov , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Arnd Bergmann , Catalin Marinas , Will Deacon , Mark Rutland , Ard Biesheuvel , Ilias Apalodimas , Josh Poimboeuf , Peter Zijlstra , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?utf-8?q?Onur_=C3=96zkan?= , Jonathan Corbet , Randy Dunlap Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, Jens Axboe , "Lorenzo Stoakes (ARM)" X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1471; i=ljs@kernel.org; h=from:subject:message-id; bh=QfW8/LMHKqPTf4R2pTPKjpcy4p10+jQ9pbl+SDhevC4=; b=owGbwMvMwCV2fu7ZrsZH9SKMp9WSGLIWlJk+2pIZFHpy309v2WveEjvYda2cs/aYH+TcLjFzs 8mmvJAJHaUsDGJcDLJiiizPv4jvDxIJm9d5wd8NZg4rE8gQBi5OAZhI9RZGhtbpq42+L52/y/bk hEeZ91+buM15GnnuZeJ1nbfC50OLN3xkZGh/cZ31aezHKXeSZ0/wqbOcIHrcomFdBee8DKOAmNU 3T3IDAA== X-Developer-Key: i=ljs@kernel.org; a=openpgp; fpr=E7F417BF5214569E89D04F46CF9DCD8A81E27F14 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Commit 3e86e4d74c04 ("kbuild: keep .modinfo section in vmlinux.unstripped") keeps .modinfo symbols out of System.map and kallsyms, which assumes unique IDs have a format like '__UNIQUE_ID_modinfo123'. However, commit afb026b6d35c ("compiler: Tweak __UNIQUE_ID() naming"), sent in the same cycle, changes this to '__UNIQUE_ID_modinfo_123'. As a result this regexp has never matched and every kernel since v6.18 has carried one kallsyms entries for every MODULE_INFO() declaration in the kernel whether the modules are compiled or not. That's 5,810 entries for an x86 defconfig build and 15,200 for arm64. On x86 defconfig that is 113 KiB of kallsyms tables and 32 KiB of bzImage, and every lookup walks past them. Fix the pattern. Fixes: 3e86e4d74c04 ("kbuild: keep .modinfo section in vmlinux.unstripped") No measurable change in build time, the smaller tables are not on any path the build waits for. Assisted-by: LLM Signed-off-by: Lorenzo Stoakes (ARM) --- scripts/mksysmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mksysmap b/scripts/mksysmap index c4531eacde20..56a8b8bbdb37 100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap @@ -83,7 +83,7 @@ / _SDA2_BASE_$/d # MODULE_INFO() -/ __UNIQUE_ID_modinfo[0-9]*$/d +/ __UNIQUE_ID_modinfo_[0-9]*$/d # --------------------------------------------------------------------------- # Ignored patterns -- 2.55.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv