Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp592969ybz; Wed, 15 Apr 2020 14:44:47 -0700 (PDT) X-Google-Smtp-Source: APiQypKfaTxw+Hd0OYA8ix7FVK5idRCw75mEUDc0pgKhYqthXQpMp+NDos5dS7AqkfnU1stq9Elv X-Received: by 2002:a17:906:af59:: with SMTP id ly25mr6866453ejb.65.1586987087584; Wed, 15 Apr 2020 14:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987087; cv=none; d=google.com; s=arc-20160816; b=bSBIk2wU3C9f86EAuxfjAqV5UUWq3GvSlkSnni/HPEzTCvloR/pDS6jFdDeQtBpz8U rdzGqrLAXHdvv8BX/9vXvcB0WEd1LknFj9WsZP8NTR9nq0fyKyGNsger55gjOhmBTb37 g4pFPpWlbu9EUNJ7BdlKPqhR5WGKtyzZMiEBQDrWdX3ppoVusWuhPM86u49jGubkFfkh w9KY/I0rgql4/e6tIQ15UT8EPpwPxiNkj+sH02mQ8R5eJFeW/78tKd9BqQoKxm0U20yW YsenpEfYdNBuARuwEL3lISCEItWU2RDyy8IP0lBu+qftzAmZD3tVG1sU+RrQpfQu3Hvs QVMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=NNd3L2hFS9rME0BH+hds6rIQEjI6WU6A54X/EwZ1L5M=; b=vTtU+N0UyC6ClLuDp54jst25MT3XzlGgGOIKXzEaW/g/QfY9+vqrwZAtA55ZZ13Giy JcwDkhxk+fgftWS7C7IihXjVp98scxIPBHdfn7KkDNcxG0zd/cqmosxd5PGefrQJtjyy A87vFuLmz3IV/zMETxk+0u2KOpzPU2wjDV7Wu0rtLc2oEhbU0BHEGj3z/1TXpjqDeJQ1 sUauHbRZyl3cay4kHLsNGR++MXltalNzvCkvJZ0xsL8pjpkwceMdJLNrswmIIMkzMZ0y +kW79NjVRo8/JFr+Wui9xxeYc1Y6HYYUjsnMsughjISpQRGzpMEccFkGNl7wrmmpCpiZ /asQ== 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 bi18si11634010edb.109.2020.04.15.14.44.24; Wed, 15 Apr 2020 14:44:47 -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 S1732207AbgDNPzD (ORCPT + 99 others); Tue, 14 Apr 2020 11:55:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:50494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732077AbgDNPzB (ORCPT ); Tue, 14 Apr 2020 11:55:01 -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 ACB8B206D5; Tue, 14 Apr 2020 15:55:00 +0000 (UTC) Date: Tue, 14 Apr 2020 11:54:58 -0400 From: Steven Rostedt To: Julien Thierry Cc: Matt Helsley , linux-kernel@vger.kernel.org, Josh Poimboeuf , Peter Zijlstra , Ingo Molnar , Miroslav Benes Subject: Re: [RFC][PATCH 00/36] objtool: Make recordmcount a subcommand Message-ID: <20200414115458.093e221b@gandalf.local.home> In-Reply-To: <064f41bd-0dfe-e875-df7c-214184c29fa7@redhat.com> References: <3a3f70df-07b0-91d9-33e1-e997e72b0c5c@redhat.com> <20200414093506.7b91bbbb@gandalf.local.home> <064f41bd-0dfe-e875-df7c-214184c29fa7@redhat.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Apr 2020 15:17:39 +0100 Julien Thierry wrote: > > I was hoping to have objtool handle all the operations needed that required > > reading elf headers. > > > > That makes sense, however, having each operation as an objtool > subcommand doesn't solve that issue, right? Each invocation of objtool > will re-read the elf object. > > I guess having all the relevant code in objtool as subcommand would be a > first step towards that goal. Exactly. I believe the goal (it's been a while since we discussed this), was that we could "batch" the sub commands into a single command. That way, the executable will be executed once per object file, load all the elf headers, than iterate over all the sub commands that we set on the command line. -- Steve