Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3509917pxf; Mon, 22 Mar 2021 08:04:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyR10C9tAXlM58BfvOtCs77kS8uSR4Yp+qbK5Pg0A35Kmj8+ULTQwrX8iWF5K56wDFvwZS X-Received: by 2002:a17:906:5918:: with SMTP id h24mr144215ejq.501.1616425498829; Mon, 22 Mar 2021 08:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616425498; cv=none; d=google.com; s=arc-20160816; b=egqA6itXJVEBt5/7s+13uNMxZ2M/WLQF/hKH3v9Ox4BcmN9+PPCwSD7oAF0iAR95iE 8/raZzIovh5G1Wm4kXziNoIlrPlv2MdT3bt7WecGOU4uzTe3CHl8+5aIEDgUlBMdwnCM 1AS/SqzZDW40O0yyN6cRSNhm52TCttd4Sn17LzvWQLjQwIy4y+T0SpzAlQx/D43bJdvJ vc6d3zup/iZxFI7GOOq5Jy+bCZBI4K3x4PNFUNZazhfWU9oLeF2d6m03DjPQbkhue9SK N7h8mdcgNRsooKp7FET005ZWNRnaHBnvpFzaXImD0ZhY1jy5RddHeCvbcYwdFwrAQpSY YtXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ko5dOBQ1U6klmq95crAcyMuPDoTihMKft9jN+xp50+A=; b=lPkY6XK1Wiuyu+N63sjSAYfj8Hf8QFQ0AjY9CA+w4TXiwDFC29wro+7RDZnMGmtejJ lOK2BRhtP2jWztZXQOrRsfmIWGcQ4RESYji2SpLi31TpPocx1VfpJriMe9MNO2BPAnN1 ELrqevPvOiUGeF+Dpyck1gcZyTpelQa50hs4TRXjWUKnGR1MbfYhpxANX6iR/5F9vgck mSrAjTO3AfozEO2CXortkIQ58LA3XzAe+BZRIDzrzkocpg3THbqZ7y25T9Bq98yXGcbi ius3Ph86qgCYPK2JNic9Tcilnd8e3RpEC6gqYCXTvuTaB+8+JLsb6+vR1lPqPb3uHPz9 ywBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv13si11562550ejb.531.2021.03.22.08.04.33; Mon, 22 Mar 2021 08:04:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbhCVPB1 (ORCPT + 99 others); Mon, 22 Mar 2021 11:01:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:35336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbhCVPBJ (ORCPT ); Mon, 22 Mar 2021 11:01:09 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C9BEE619AA; Mon, 22 Mar 2021 15:01:07 +0000 (UTC) Date: Mon, 22 Mar 2021 11:01:06 -0400 From: Steven Rostedt To: Qais Yousef Cc: Alexander Sverdlin , Ingo Molnar , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , Linus Walleij , Florian Fainelli Subject: Re: [PATCH v7 2/2] ARM: ftrace: Add MODULE_PLTS support Message-ID: <20210322110106.2bed3d50@gandalf.local.home> In-Reply-To: <20210321190611.d6a3hbqabts3qq5v@e107158-lin> References: <20210127110944.41813-3-alexander.sverdlin@nokia.com> <20210307172650.uztx3sk5abybbp3f@e107158-lin.cambridge.arm.com> <0c122390-6e76-f773-86e9-8c085f4384f2@nokia.com> <20210309174201.n53za7mw33dqyleh@e107158-lin.cambridge.arm.com> <3eecf51d-b189-9e8b-f19d-a49d0764aae5@nokia.com> <05608bc8-f44d-5f91-15ab-af00c59b53e6@gmail.com> <20210312172401.36awjh4hmj4cs6ot@e107158-lin.cambridge.arm.com> <134e1a2c-daac-7b00-c170-bcca434d08df@gmail.com> <20210314220217.4mexdide7sqjfved@e107158-lin> <20210321190611.d6a3hbqabts3qq5v@e107158-lin> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 21 Mar 2021 19:06:11 +0000 Qais Yousef wrote: > #ifdef CONFIG_DYNAMIC_FTRACE > struct dyn_arch_ftrace { > -#ifdef CONFIG_ARM_MODULE_PLTS > struct module *mod; > -#endif > }; > I know you want to reduce the "ifdefery", but please note that the dyn_arch_ftrace is defined once for every function that can be traced. If you have 40,000 functions that can be traced, that pointer is created 40,000 times. Thus, you really only want fields in the struct dyn_arch_ftrace if you really need them, otherwise, that's a lot of memory that is wasted. -- Steve