Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp373374iog; Fri, 17 Jun 2022 05:17:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uIBIEASxbIZqMAIs2GM8rvgIdFFQ66EO018UY6Ahx9HK4Ul66KI6Itaau2tbets0g0o7/j X-Received: by 2002:a17:90b:350f:b0:1e6:94e1:bd17 with SMTP id ls15-20020a17090b350f00b001e694e1bd17mr21550058pjb.162.1655468277825; Fri, 17 Jun 2022 05:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655468277; cv=none; d=google.com; s=arc-20160816; b=XS8O3Mn/S5EtU41DpQgdErS7v9eL1rc2mwe2wEbyZdM3JP17xMo5e58OwhU40+rn9v sRFrmloZ4WM+wCToYwQhoTRNV36P/ieV1OHXllZHlrnD9lh48KdQUF1M57crbSOr0jbU zV4CKe1pb4w/3VBGG0TbzZjuh+8HrFW8CEIh7C3Ni0Cu+TEze1z5sNGKswywtBvhDcmi YUqGKeeDwSBY9eYfv9ZRtG5KwT5zEXSMEGC4Zyv62YvJEi/aA/MYr1XsFzbM+ijznZyd NmPhvnA/H/ltpeaKDm9jARNta3CIbnXvQd8bK+V54Vt2VGhGRSmQNfZ31d2A9MTbiuiT lcZQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W7dioW9GckbO/QAEw6YwwZqu+Fq9mZEtJ5kA67FvXx4=; b=ds3t9DpzK8/FJ8lFrA6hoAcmFaJlLI8i2nvmyyOt3OJJrLiphiDfr+6RTmJ2oeAqTQ HRNCNmd0wYs1ODHL63sZ1Id0AMx/YMJ2FSbR9fxghsmXIV6KZnYp7QOA6QH1DjF9Bre7 2uQeosBD/GqxABAa0faCggG9Qobyz63OPEGM9Aa9tXFqsWXGJbw3TgaTq5g+Iv28UP00 g0nIrJ5fHg4GUf5nbjnS3m50kgBh7jk9DMx2LX+yxcgE3NCykofoWFcaR3e7VmS1+vSi 7Q45RJZaTzZeg8VsC9D5XQWet2Y1qumjibmBgl54NtQzdLNPcKJtDyDTJXvkSAaPtoTy J2ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=KfYUuFq1; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a630112000000b0040224628c1asi5383226pgb.535.2022.06.17.05.17.35; Fri, 17 Jun 2022 05:17:57 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=KfYUuFq1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382320AbiFQMGv (ORCPT + 99 others); Fri, 17 Jun 2022 08:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381162AbiFQMGt (ORCPT ); Fri, 17 Jun 2022 08:06:49 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 232BC6BFEB for ; Fri, 17 Jun 2022 05:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=W7dioW9GckbO/QAEw6YwwZqu+Fq9mZEtJ5kA67FvXx4=; b=KfYUuFq1DBF5HuBWNMM7NkLgXQ 3KzIOSpvVPRYtex03vRT5DpF640FP8RTVAgf62cINM4zYQXNBiPjKPtmRs1D2PB36XjfPH+PYvAzI G2orTgW6Ix5fvhzU6i577n00Clc2AWaSSZ6uie+fJresZkzX+fVAh4L7CMzZWNpteS00la8CistwS kGrt/ELeBx4xQbXOcZwElyD+VVHzEDNxQV5eIWPV7WkaeNgouuYVIYYWSyj/XGQVdMhZktJ8v87Uw eKQvRxx3arybpNJDLjZfkPXi7PaNecpTED3jL6shXnpcw3kvd45GtZ85LWu3MTL2EdypYN5o/PpqY lx3hnUzA==; Received: from dhcp-077-249-017-003.chello.nl ([77.249.17.3] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2AkG-008gAP-HW; Fri, 17 Jun 2022 12:06:37 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id C3F299816B5; Fri, 17 Jun 2022 14:06:34 +0200 (CEST) Date: Fri, 17 Jun 2022 14:06:34 +0200 From: Peter Zijlstra To: Christophe Leroy Cc: Steven Rostedt , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Josh Poimboeuf , "naveen.n.rao@linux.vnet.ibm.com" , "mbenes@suse.cz" Subject: Re: [RFC][PATCH] ftrace,objtool: PC32 based __mcount_loc Message-ID: References: <5c759021-99ce-7633-699d-49b3229df339@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5c759021-99ce-7633-699d-49b3229df339@csgroup.eu> 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_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 Fri, Jun 17, 2022 at 11:44:49AM +0000, Christophe Leroy wrote: > > > Le 17/06/2022 ? 13:24, Peter Zijlstra a ?crit?: > > > > Hi, > > > > I recently noticed that __mcount_loc is 64bit wide, containing absolute > > addresses. Since __mcount_loc is a permanent section (not one we drop > > after boot), this bloats the kernel memory usage for no real purpose. > > I guess you mean it is 64bit wide on 64 bits architectures ? Because it > seems to be defined as 'long' so will be 32bit on 32 bits architectures ? Right, it's an absolute address in the native size. Clearly I'm somewhat 64bit biassed :-)