Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3084427pxk; Mon, 5 Oct 2020 00:11:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu66HFvC2A2L/nSv4AOM3RB8vrgmyulouEqGo/A8pBhr1jEpUe6oRPrPwWTlNyBLJ47Put X-Received: by 2002:a17:907:2076:: with SMTP id qp22mr14027503ejb.358.1601881904098; Mon, 05 Oct 2020 00:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601881904; cv=none; d=google.com; s=arc-20160816; b=mfrgUluCtuH20maRqiowGFPmZk0ba2rhzPzBtRs0VvLjTagDEWjVE+NonmHvwZxB4a Lj/ffVtuHKXIGjK65bMVYARglBJTC2fGzmPRCjQ6et5gdlLMyLgdOh2M/ErYbKnmAZ/D iSDJySj5EzoaqyJTImicQBwrqlNVIV+r3ZdX67cgTltbpQLmUHMOmo+oPprOsH7kzB8G txf27nwoGeFzzWLIxJohx/+a8ZHPm2SIDr/3f7dDjY4YdBAMFdjGN+6SlESLbDac2qgl R6piUSnE4Funa2uGZoOmYgldFJx4OxHLZ+ze7paanbsqGlAZfjAN+Yz+KaHVqqiKROfe 7MLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=98pKlkB3HRXcwp17Hhsuxn23D2uK7g0e8tVZt5HQvxg=; b=t13U7azdj+u7kHiEWF0qfCz939deSf5ypwzptrec03uPLLL8yqoDM1Vt5u/kII6eRI 1M66PCcNigZCneqt2TDaoWolfwoSM1H3S0D74W8URGvjPppw8UpIGbdgaXEDvEXkXIRe jAUkpTR9toUIFPZXAxp8fFjAlf0NuTmqpoLt+OougyDT2YSus3UlsPovO07H0J15ksS0 eaQ/QqZlJwn47ofFgUA6QyeEG1iaicjD94+SMFWv1cV1+pC0Eq+ZBvk95A1nItAKC7+g TQ71Jg9JRlrOndzBlpahfNJAaFc3qNEky4ZOLs8ww4kmXayr+M65+ebnqYAcOGhyP518 OOtw== 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 qt7si4378521ejb.97.2020.10.05.00.11.21; Mon, 05 Oct 2020 00:11:44 -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 S1725911AbgJEHKK (ORCPT + 99 others); Mon, 5 Oct 2020 03:10:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:48016 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbgJEHKJ (ORCPT ); Mon, 5 Oct 2020 03:10:09 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 600D5AA55; Mon, 5 Oct 2020 07:10:08 +0000 (UTC) Date: Mon, 5 Oct 2020 09:10:07 +0200 (CEST) From: Miroslav Benes To: Josh Poimboeuf cc: Peter Zijlstra , Sami Tolvanen , Masahiro Yamada , Will Deacon , Steven Rostedt , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, jthierry@redhat.com Subject: Re: [PATCH v4 04/29] objtool: Add a pass for generating __mcount_loc In-Reply-To: <20201002141303.hyl72to37wudoi66@treble> Message-ID: References: <20200929214631.3516445-1-samitolvanen@google.com> <20200929214631.3516445-5-samitolvanen@google.com> <20201001133612.GQ2628@hirez.programming.kicks-ass.net> <20201002141303.hyl72to37wudoi66@treble> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Oct 2020, Josh Poimboeuf wrote: > On Thu, Oct 01, 2020 at 03:36:12PM +0200, Peter Zijlstra wrote: > > On Thu, Oct 01, 2020 at 03:17:07PM +0200, Miroslav Benes wrote: > > > > > I also wonder about making 'mcount' command separate from 'check'. Similar > > > to what is 'orc' now. But that could be done later. > > > > I'm not convinced more commands make sense. That only begets us the > > problem of having to run multiple commands. > > Agreed, it gets hairy when we need to combine things. I think "orc" as > a separate subcommand was a mistake. > > We should change to something like > > objtool run [--check] [--orc] [--mcount] > objtool dump [--orc] [--mcount] Yes, that makes sense. Miroslav