Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp184189ybz; Wed, 15 Apr 2020 06:53:33 -0700 (PDT) X-Google-Smtp-Source: APiQypK5ADjiQbn2bNfUerfYhqAQlJo2ZM6sgR2SFrtlYx2QtxL5iOyhbsYebThAP6PSxeheApod X-Received: by 2002:a17:906:d208:: with SMTP id w8mr5348460ejz.250.1586958813421; Wed, 15 Apr 2020 06:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586958813; cv=none; d=google.com; s=arc-20160816; b=XH/6vZ1saXwuggljq+6Z2jQB7DJLZzLvhk5H/N5xo1bx/WhO1lGaLfLYqaUO4PDk0T yJwBkUdB9mhn4EJPfdELqxLI7XoxGiVo9EfFTvOgu2QHsNAzIMEo0fNgfkBluI7jfpFv /FZ+Qz4gpLwrcBVmVT7Z4k5IacQqnalyhkRIovCHRX7ebTTqV1bNLrqDBPgFNnxpsB1A U3zA6k4FwGQkUag40Zch5Vbel9yOHIDls71ZByyt0eCWqMTDcCZgXyIejg+QOW/t8QQA 1lIKFJyLV9L2tr+CzE1HL0BH3+Q+0xLkucIxyUnW0QdLWaHDA76shEMF/T2Qgc5hjb7A XNyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jd5NnoCRPKRbj7j9kaV2Dy+/l09qTYOAoHfPAeydajY=; b=QpKPvmlOe+COOsIgT8NcCUHAT6YtqzdIwxeyxsb+k3/Hgxc9N1MOhjNVAKIxsB1D1z nUOMzsejjYguYvmz9wjUzRXjAEAAHe8vzVcsKZUZwDd3D8s1BcNlCGff5nLwqhqh2m4I GtlvWUVxAz1+dM4fSfiuj8tvYLKFqhqv5Hku/PNEO/ul7hdscCIVAP+dqA6kuIaGfurA xFw6rm/5gGv8QuZoGRYPzxmsByxSN7Mpp5Nn+XSKmXZ22FIXi7n0VH4K9DbeQXq+Y+09 MSox82gcrV8GnRnLiqsbFZLgHgMNdr739/oBdwdlnmdQ3EVgOho5U2AHQqzVUY8PX01Z 1REg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=bRi229pe; spf=pass (google.com: best guess record for 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 g23si10617510ejh.437.2020.04.15.06.53.07; Wed, 15 Apr 2020 06:53:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=bRi229pe; spf=pass (google.com: best guess record for 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 S2633738AbgDNVSV (ORCPT + 99 others); Tue, 14 Apr 2020 17:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2633733AbgDNVST (ORCPT ); Tue, 14 Apr 2020 17:18:19 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE57C061A0C for ; Tue, 14 Apr 2020 14:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jd5NnoCRPKRbj7j9kaV2Dy+/l09qTYOAoHfPAeydajY=; b=bRi229peuIXEO3ETCcWXUuiece 6pq+zYPGE2Fr/fJICxDfN62y85yyYIiduK2HnTlDvkM4EiMXPvmtjIWov808F0+gPmQONW8FzKl4j xPZJRMzx857RRk2Kq3/VHUeZf9OLPDFlg5siCt9QVf/dak24TYa2tayxXpRrjbG+e92B0gDf46tG9 45M5YXGjijBR9CGusJp/0wfUbNXkn1b3Cpqj4lzPJ3RkLMAJmjDbOpd19JQ4lcxIW4NcLZ/IOr3Os x6xWFMqilojZEEWCbV79W9VhLohceUvP3/lC5SK9qdmX4c9N9t8aJComza0wC2O6Xaz2spwPe44s0 MEMGlmyA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jOSwP-0006aR-B0; Tue, 14 Apr 2020 21:17:57 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id EE3C9981086; Tue, 14 Apr 2020 23:17:54 +0200 (CEST) Date: Tue, 14 Apr 2020 23:17:54 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: Matt Helsley , Julien Thierry , linux-kernel@vger.kernel.org, Josh Poimboeuf , Ingo Molnar , Miroslav Benes Subject: Re: [RFC][PATCH 00/36] objtool: Make recordmcount a subcommand Message-ID: <20200414211754.GK2483@worktop.programming.kicks-ass.net> References: <3a3f70df-07b0-91d9-33e1-e997e72b0c5c@redhat.com> <20200414093506.7b91bbbb@gandalf.local.home> <064f41bd-0dfe-e875-df7c-214184c29fa7@redhat.com> <20200414115458.093e221b@gandalf.local.home> <20200414200910.GB118458@rlwimi.vmware.com> <20200414204729.GJ2483@worktop.programming.kicks-ass.net> <20200414170520.4d347caa@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200414170520.4d347caa@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 05:05:20PM -0400, Steven Rostedt wrote: > On Tue, 14 Apr 2020 22:47:29 +0200 > Peter Zijlstra wrote: > > > On Tue, Apr 14, 2020 at 01:09:10PM -0700, Matt Helsley wrote: > > > I also noticed that, for example, sorttable uses the same ELF code / > > > patterns as recordmcount -- like the double-include trick. Of course > > > it operates on a larger scale than per-object-file and so there might > > > only be code maintenance savings there... > > > > I'm >< close to having objtool run on vmlinux in the link stage too :-) > > Do we want that? Matters how long that takes. We do want that, however it is conditional on CONFIG_DEBUG_ENTRY and does some rather specific validation. On a defconfig based kernel it takes ~2.5 seconds, significantly more an an allyesconfig.