Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1341044pxk; Fri, 2 Oct 2020 07:17:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/MqXqzdv6jJU+6Yd6ID5LDaK7gHVJNswclwFu4sDi+mesFyrgKAL0niEZgdR1yGUAVSdC X-Received: by 2002:a17:906:7f15:: with SMTP id d21mr2558029ejr.470.1601648226309; Fri, 02 Oct 2020 07:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601648226; cv=none; d=google.com; s=arc-20160816; b=NydP39iV3vtIokoM0+0B5yWKJ7j4b3bCVzUPL6USyw2UKN6JUiKQTNc6c1luvbSuEC sU7GBcbg0SE2nUTaJWPov9W7l6v2UL5SpvH+DMmPVqtsxVRIhkYNnzDQEZmxVC+rlTAd payW3tEDGP5F8owPmnrn+A02NI8xY/nuRcYQYF0ec0laNC9GB8ZxhjoioUdhEJYqX9xB IEC0wKxiZegZr8tTItxsw08tMajrVmLO3jty9RWDFVtzGUdTt4bB4G5rXO7kTS5Myj1a VJs8MIhcg7H9lgpeI/O8evd/81GzuK6gACXRriarOS+2Nj8wuqA5kz1/GaIrlsoqK6HB ChbA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T8R1XgQI7k4cK5q1LMAze0lbj0we9wkSuLhijnQjdY4=; b=EHU3tEe1ylZU6dAqsvLJd7gcae+Fg2vvpSjxRpb1816RWVUyi0ybRPl49sz9aNouYa Z7To6xB4EMKRNqH8e3Mrwpk/mHLHbXq8MMGRe1TCkzQSuamwM0EK1BZdF4s16MfUS3Hx 7vX/Vyq7oSn3crdHEXJrnB22AMz21Yjdrh1BUJj360HDg97CESnYdzFS9+NVf5mYr3D2 d2LY2iiVwmMgi29hyDelYGoBf6jnPko/z9ox8HLd9C1KlR+LnngQczkaNQm9mGkBrIXv fUcexko0BHZCWTdY3FkXSaT7fkg2v9kKGn4jhzUE+LRzndwtIzSrRvaVj2LvzX+fbPm8 IPmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b+3b8K7u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si1065409edd.517.2020.10.02.07.16.43; Fri, 02 Oct 2020 07:17:06 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b+3b8K7u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388029AbgJBONY (ORCPT + 99 others); Fri, 2 Oct 2020 10:13:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:30795 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387908AbgJBONX (ORCPT ); Fri, 2 Oct 2020 10:13:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601648002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=T8R1XgQI7k4cK5q1LMAze0lbj0we9wkSuLhijnQjdY4=; b=b+3b8K7u2drGN0KmGLzAYxNJ9Ag53zLPy+A1ccgWOLpNj2EpMwsOdYLGu+AAdIfoRy886u FAp6EM6ol6Unj1vQc9VDi8iL5QbmJewK+21Hcp2FbUrKZoojTTpWaSO8ZL2kgkNfIGSnO+ 6f3YN28IozZPhIQJNxuMN77TVkH/dcI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-46-KaOFE74rOgejG5g4BEKn6g-1; Fri, 02 Oct 2020 10:13:18 -0400 X-MC-Unique: KaOFE74rOgejG5g4BEKn6g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4C952801ADA; Fri, 2 Oct 2020 14:13:16 +0000 (UTC) Received: from treble (ovpn-114-202.rdu2.redhat.com [10.10.114.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3550E81C5B; Fri, 2 Oct 2020 14:13:07 +0000 (UTC) Date: Fri, 2 Oct 2020 09:13:03 -0500 From: Josh Poimboeuf To: Peter Zijlstra Cc: Miroslav Benes , 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 Message-ID: <20201002141303.hyl72to37wudoi66@treble> References: <20200929214631.3516445-1-samitolvanen@google.com> <20200929214631.3516445-5-samitolvanen@google.com> <20201001133612.GQ2628@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201001133612.GQ2628@hirez.programming.kicks-ass.net> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] -- Josh