Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp414278rdg; Thu, 12 Oct 2023 09:08:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFsnGItgHk6IMelLKU/yQvbbcVdcY1X78CSYnqIIXM6KDryGnj6jEaed9pqVFP6b6Tw5XAc X-Received: by 2002:a17:90b:3e87:b0:274:755b:63b8 with SMTP id rj7-20020a17090b3e8700b00274755b63b8mr24610612pjb.43.1697126907668; Thu, 12 Oct 2023 09:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697126907; cv=none; d=google.com; s=arc-20160816; b=PHaZ9KexH93SxX2nmuy2NT3UJk6q4wvuMztrZSowH/ROyJDHFQZaYD/P4pz2pLYAz0 M+61MQk7GpRKASyxV2JXpX1hhZFXHiwUBSF7gjKyMhYDMUf2X2H6Vz8aEhYtY7MoQAhT YgypkfBECir6yqxI3kYF9gc8HGrWm9c1tNw7/ACY4z5gZnmEiQHuNV3+1avnsODQUiIE DDxHL/2FDy1mR6L1A+/c4Qv1eTvrBFnN7xBrJ21gsuCEE6VCtu19ayMv4rHd03WzX4qD S5w7kA5nrOdKtkowTb2bLSeRM3aCt0cWSIRtd5A5Z51OJ9AMhJ48jY/xbwguAvlfCeMs JpGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P3C6DnW9y+c1eDrDjZFToyhb1fXGpFdqc0aMUO86qnI=; fh=54oHijCQQbr0CUYWKbVFOlmLOQWVDL1EJE8tVZ6V7Us=; b=Q2n11n9o9KM7TStUM8MnK5iYfxL50+ESI1o+Ntht9h69lVGTzgQydO9ZCJeNn2BzTi YE846lsZ+VmGyZttsshVK4hezwgHp6u2yYJMHaxoMIQu23SBTnudLa8yE735M7ku8nmu 3Va4wtFTh7rBlxmKIIlpjW45JySQPNfvGQ00tEAmPY0lsaL3k+EFIePLxuQv0u+Vs7CQ CTm0jcz6BeQbZWwi+io4C3sJzrXuHJZ0i30/ZWnuaZR9YElEuXNPDJI8/p74LOJwVDhZ uF+zWIDCb+uiAh3SCTckb/Dkk+rmytv+wZ/1Wln3tzZRXOSPbkorVCNT/vkiOC0Ipvkl 1EVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrkiYLiZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id o20-20020a639214000000b00578fdfa353asi2674237pgd.402.2023.10.12.09.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrkiYLiZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2978181C2010; Thu, 12 Oct 2023 09:08:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347314AbjJLQIG (ORCPT + 99 others); Thu, 12 Oct 2023 12:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235737AbjJLQIF (ORCPT ); Thu, 12 Oct 2023 12:08:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8E04D3 for ; Thu, 12 Oct 2023 09:08:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BB81C433C8; Thu, 12 Oct 2023 16:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697126883; bh=2UpTEfzKhwBh+bM5tqy6dBGC1ZFE2SP7YfTlFl2S0n0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nrkiYLiZteU+qHMsgX/qqUixOIkSSU7FECx5zVWC57C79UFUUmDZlnz4OCOrxrVju 4P3SQHNWYjQV4R+4xbUIxvZREVOZJFOamfeuc8v8XE8iPTR8sPsCdsxdXOmkqUM3M0 G0h/tceFyebqOZHGeQgB45ZvJJAQp+XEDl1V5BCT+mHTCb5amVhxr9Ynrlykk1LUlU DxE4BRM7MzKie2P0AiC8OT0Mj7L0+QjSnkaUl+pbjomFJCBzA3BHsw2664RosAsyMk X6JLpstSpjolOjpv/wZH6dUIGEmCzlr1mYzx/uG91nuYMo7raykTxYSOqO9Gz1DFWU ntUvDZUTL4nUA== Date: Thu, 12 Oct 2023 09:08:01 -0700 From: Josh Poimboeuf To: Ingo Molnar Cc: "H. Peter Anvin" , Linus Torvalds , Uros Bizjak , x86@kernel.org, linux-kernel@vger.kernel.org, Nadav Amit , Andy Lutomirski , Brian Gerst , Denys Vlasenko , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() Message-ID: <20231012160801.blc2t37gfqhlah5h@treble> References: <9b71932a-d410-4b92-b605-d6acc5d35069@zytor.com> <20231012013507.jrqnm35p7az6atov@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 09:08:25 -0700 (PDT) On Thu, Oct 12, 2023 at 08:19:14AM +0200, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > Though, another problem is that .text has a crazy amount of padding > > which makes it always the same size, due to the SRSO alias mitigation > > alignment linker magic. We should fix that somehow. > > We could emit a non-aligned end-of-text symbol (we might have it already), > and have a script or small .c program in scripts/ or tools/ that looks > at vmlinux and displays a user-friendly and accurate list of text and > data sizes in the kernel? > > And since objtool is technically an 'object files tool', and it already > looks at sections & symbols, it could also grow a: > > objtool size > > command that does the sane thing ... I'd definitely start using that, instead of 'size'. > > /me runs :-) Yeah, that's actually not a bad idea. I had been thinking a "simple" script would be fine, but I'm realizing the scope of this thing could grow over time. In which case a script is less than ideal. And objtool already has the ability to do this pretty easily. -- Josh