Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5897705iog; Thu, 23 Jun 2022 07:28:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sxMdRHnQibVJp5MftfWtD+kOCAPSHPEt5UKEyCQYzhz2R32cqTOtRoOXnHP3GSH7RgU6sg X-Received: by 2002:a17:906:64d7:b0:712:c6d:46f8 with SMTP id p23-20020a17090664d700b007120c6d46f8mr8231474ejn.40.1655994514179; Thu, 23 Jun 2022 07:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655994514; cv=none; d=google.com; s=arc-20160816; b=aDvWC1b/CoyGHrTMkKHHaVo0eFACWKIG8hpGezWvE2JORhFOBlbeYy7TyS5zyWZXoQ wjMZXvtbp1lETjIc5qKfTkIwJCi1vg1CY2nltnfr0uByDdjSslJPX5UpCatHpzkzWXsU 2zEYAucpgxs5WH4jnS/B7NYsBXq4Rt9lBszEaFFlU/pgUu3UdtDrYE/j38jkoTFBvH7M Bu/zvxHnFISAEX/RIlGgx2Cdq4TErWFd3Ic338smPneKb1/TLdu2DFwAibZrGkoPNVFx rWl773uubOHWifgss47xvc9BIQp8NpB9mZlB3hVixuns8vRpHVe0uySxkERF59kU7wJq /FCA== 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; bh=3elmcvNpJBVHgoUCHhmhN8v+uBofU4V3EwcBkwjfyoM=; b=C8RWkILjjDBEaP24tb9293LmqHvtBYE6EIK4rrkMU0Qc9m7vUIFZskBIXL3yxgtD0V I3LTMYKXbbWUECJkgNL7+p6P+3q22llkecgtMy2kzrsTy0PMgAv9u3bfvva5ZSLspp94 ScItLJnuu+GYCuTHAnruGS/ssGnsUO5vICTEH5y5JVDSoMspMTJHxzb/MKWlSuR18xF/ 04X8LNIXRdY/BynisB4xOssSGl2oTIOOOLOJnvXay6MWIxvw+ioo/QemLZUsqMChuXGZ RLcwWkKcRrm36HcpkEP5SefBpeBNzqhB3oxMSrpav4CBr0s77ieZkW7KmLo4xFofMcdR nWzw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds21-20020a170907725500b006feb8b6b37esi335377ejc.907.2022.06.23.07.28.05; Thu, 23 Jun 2022 07:28:34 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231919AbiFWOVg (ORCPT + 99 others); Thu, 23 Jun 2022 10:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbiFWOVf (ORCPT ); Thu, 23 Jun 2022 10:21:35 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 131C243EFE for ; Thu, 23 Jun 2022 07:21:35 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DF9012FC; Thu, 23 Jun 2022 07:21:35 -0700 (PDT) Received: from FVFF77S0Q05N.cambridge.arm.com (FVFF77S0Q05N.cambridge.arm.com [10.1.26.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 698463F66F; Thu, 23 Jun 2022 07:21:33 -0700 (PDT) Date: Thu, 23 Jun 2022 15:21:30 +0100 From: Mark Rutland To: Steven Rostedt Cc: Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org, Josh Poimboeuf , christophe.leroy@csgroup.eu, naveen.n.rao@linux.vnet.ibm.com, mbenes@suse.cz, Nathan Chancellor , Nick Desaulniers , Ard Biesheuvel Subject: Re: [RFC][PATCH] ftrace,objtool: PC32 based __mcount_loc Message-ID: References: <20220622105436.775ccf7f@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622105436.775ccf7f@rorschach.local.home> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 22, 2022 at 10:54:36AM -0400, Steven Rostedt wrote: > On Fri, 17 Jun 2022 12:40:00 +0100 > Mark Rutland wrote: > > > We have a similar issue on arm64, which is exacerbated by needing ABS64 > > relocations (24 bytes per entry!) adding significant bloat when FTRACE is > > enabled. > > I have patches that bring down the size quite a bit. The mcount loc is > read into the dyn_rec, which has two longs (the second long is the > flags that only use 32 bits, but is a long to make it aligned, as a 64 > bit word followed by a 32bit word just added 32 bits of padding to make > it an array). > > The patches make it into two ints (which bring down the size for 64 bit > machines). The lists are broken up into blocks, and what I do is put > the top 32 bits of a word into the top of the block, and make sure that > they are the same among all the entries in the block. > > I guess its time to bring this back alive. I don't think that helps? I'm on about the size of the kernel "Image" file, not the runtime memory footprint. ... unless you mean doing that at compiler time? Mark.