Message ID | 167526879328.4906.805580574761621233.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp376097wrn; Wed, 1 Feb 2023 08:29:55 -0800 (PST) X-Google-Smtp-Source: AK7set+ac8890vZh96BrvsjtJPLrwtxzHAwFgDW38e4RAfqCs6vFdq/cM0KeUKQqE68OsqO34UXD X-Received: by 2002:a17:90b:33d1:b0:22b:ec81:c36c with SMTP id lk17-20020a17090b33d100b0022bec81c36cmr2842625pjb.45.1675268995351; Wed, 01 Feb 2023 08:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675268995; cv=none; d=google.com; s=arc-20160816; b=TG49HSmV8qQWTfibUJqTyR0CWkFrVKugxE+WgvI+rcSmAiXOk/wf10QAmabgRLNnMP tHpjWiuJ5q3KU5t42UecKrGHBVUYbp6whyloS6nhv4xOeSFmPtO0i4DKjxq8BNihINJB /ry7xG7Sa5skDz6Cxmq16ijnje5Gq9ZnOlMdRfZ255Iv7+6vjXTX82pv8GU3cRZOeTjI q2aAStI8TUj+oPHiJ+R3tg2TA8AbN4Oiv2oalDzg3pPqJ2oQSvuUCnBbOYXKBGV5wguR P552hRHz30Dr80fUl4IIqL+bcozIMYwGivhduBdWN7ZrrzoOP4j6vOoOo00GzWIrnBFU w5AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ET2zNrmGhg8iIYs2CHxnFSC7tXI+GhXiFy2BEWL3ZzY=; b=ChrIVB/L/AKbtZdpSlPGunWbKVkYwZRZ3Brk6duECTvhU7stil8S3wyVp53HRqo3xT iDad65ZoqseeAcvvNtEcuihDiGXRO6PpzGXFuNmfp2on6WXBP+F7X6q7DGK3YYvEGYff qNMP8vlkl8ajMPp5XTqIiHjGm+zR3A1Hw6VD9Uf1IsR1JkK/islShCFVaQSz/KZCR4Q6 8zGlcGb1lCSnixCIGVh6dRSG0VezSwWBWcffQ1jQzt7lbriq00YaSpvfapS7ArO63Y6y G09IwRdfEqjMbx+xMsNBm4R/TTiE/3W0KIxOyIeMD8fb1xYdm3zTCPPAv5mTsjoAJY+P ULCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VNE1TTPi; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=GVjaw9Uo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ev12-20020a17090aeacc00b0022bf39c78f6si2175449pjb.9.2023.02.01.08.29.42; Wed, 01 Feb 2023 08:29:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VNE1TTPi; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=GVjaw9Uo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231755AbjBAQ0k (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Wed, 1 Feb 2023 11:26:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbjBAQ0g (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Feb 2023 11:26:36 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 788BF7642D; Wed, 1 Feb 2023 08:26:35 -0800 (PST) Date: Wed, 01 Feb 2023 16:26:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1675268793; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ET2zNrmGhg8iIYs2CHxnFSC7tXI+GhXiFy2BEWL3ZzY=; b=VNE1TTPi8zT+FwVxD5TqQbiBsb+dAK/ESCnq58OqZCQiP/G9IlpUxdDcixOgCXL8oq4+X5 By5Mcq6EbgA9XHpbMaecTcefJP2mFjrO/4yN0z2R0UooG2NSPjYZQG0+Ae960Jb2zEATqQ p/WTiaKq7Ls3qpQjiAR8w/JvFLP13yKFiuJI1XunPqf+BGXFvhg3JeVKMuBJ7xdI9Y9Jgd LjlyJwG2059smgjaGihKQOm3SYWXscO2GQjx5h+8Oae33KQUOqBrC9JvtuCu5ZhDJTrUjc 6yfGzCp/TIY/QPojZE+9KiTrvJS4ZFRhPUw6reZaaGZYXkwRl7cVYyvpFC017Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1675268793; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ET2zNrmGhg8iIYs2CHxnFSC7tXI+GhXiFy2BEWL3ZzY=; b=GVjaw9Uob4Y/Njxy2GTqxtGqvH3ot1Vni4CVd9GbLT/54dwdGxw2A2aL90hOTRQzZGv+WT ie7aNab2ejyGmkBA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool: Optimize layout of struct symbol Cc: linux@weissschuh.net, Josh Poimboeuf <jpoimboe@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221216-objtool-memory-v2-6-17968f85a464@weissschuh.net> References: <20221216-objtool-memory-v2-6-17968f85a464@weissschuh.net> MIME-Version: 1.0 Message-ID: <167526879328.4906.805580574761621233.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756646862051760283?= X-GMAIL-MSGID: =?utf-8?q?1756646862051760283?= |
Series |
[tip:,objtool/core] objtool: Optimize layout of struct symbol
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Feb. 1, 2023, 4:26 p.m. UTC
The following commit has been merged into the objtool/core branch of tip: Commit-ID: 55156d43d62124a92ab80c8f31661609465e257b Gitweb: https://git.kernel.org/tip/55156d43d62124a92ab80c8f31661609465e257b Author: Thomas Weißschuh <linux@weissschuh.net> AuthorDate: Tue, 27 Dec 2022 16:01:02 Committer: Josh Poimboeuf <jpoimboe@kernel.org> CommitterDate: Mon, 30 Jan 2023 16:28:20 -08:00 objtool: Optimize layout of struct symbol Reduce the size of struct symbol on x86_64 from 208 to 200 bytes. This structure is allocated a lot and never freed. This reduces maximum memory usage while processing vmlinux.o from 2919716 KB to 2917988 KB (-0.5%) on my notebooks "localmodconfig". Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20221216-objtool-memory-v2-6-17968f85a464@weissschuh.net Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> --- tools/objtool/include/objtool/elf.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/objtool/elf.h index 1c90f0a..ad0024d 100644 --- a/tools/objtool/include/objtool/elf.h +++ b/tools/objtool/include/objtool/elf.h @@ -50,12 +50,11 @@ struct symbol { GElf_Sym sym; struct section *sec; char *name; - unsigned int idx; - unsigned char bind, type; + unsigned int idx, len; unsigned long offset; - unsigned int len; unsigned long __subtree_last; struct symbol *pfunc, *cfunc, *alias; + unsigned char bind, type; u8 uaccess_safe : 1; u8 static_call_tramp : 1; u8 retpoline_thunk : 1;