Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp803716ybk; Fri, 15 May 2020 14:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV+nCe6v/Q9UUzyTr0dUaCs3C5wuwqPecHZ0KpGGGrveqU/APKSVYOBiC7n44LHD7qo0w3 X-Received: by 2002:a17:906:a415:: with SMTP id l21mr4900404ejz.100.1589576798609; Fri, 15 May 2020 14:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589576798; cv=none; d=google.com; s=arc-20160816; b=zepU9qhF2jXFWzuM5Lqn4SDe7lo+oZchCqLSFV3UNwRY9/Yit1SMq0CHhy1s4Zco+C Z18sv62hKxaRE/86tJ4wsRViSoqCq6OmCv1mBoteudVsAMOWaztIVZ7dESLIdzyoB5ly ugW7HdvYi1C1BpF0QkElW5PNHNtXT2asEH7RcxOkPWCXgs6XnRsI0kZayHtMNg3tta4p 1f2IXBbwqAxjlBIKRIhxNvQuXz+eZsL9mztv3vGr2MbkM3SRMysl8BhE1sV5c1LY6FXL vpI5eV+tRgbl+/WMDGXek4MJaeT5wq0WjdCoUYqHAvbadZWCsr3H4zqja3nMbcM145EI t45g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3caG0B1RGM0w2YEbxxrwWnjt85G7AlSJ61zuBN9U0lE=; b=jFewKX5SgoevQs8G/k/W9F4ORR4mlyuKzE2v+EHCNc1KkExVIvRWgtBaFa5PR2eNNm TRML+IOg/vXxLPByUMOrqH0D+u+URbx4y2wBhZ51dufL0bjq0LA8e1WA9TAsk4ie1WyD ZzsgNnrEMJmJG0t4jHJLpxL9xF1lPUGKnCat7PvbjNIyEZYvV4KvRYFBXzqrVs0wBLb1 9B8Xuskhr8WR+aRYieAodlnHiECrbvW1Ks1S4sYy3kF+hOFlYs5nNV1AFRWbUWiyr4Qd AukSf/+TVU6E5RR9+cPX3sLvCEHTsgXhdJjlouGsVmaVE1LAh8tsym5hDEDmhW2G3Jft kEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="T9Hj/h33"; 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 l14si2069430eds.291.2020.05.15.14.06.16; Fri, 15 May 2020 14:06:38 -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="T9Hj/h33"; 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 S1726703AbgEOVE5 (ORCPT + 99 others); Fri, 15 May 2020 17:04:57 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44730 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726179AbgEOVE5 (ORCPT ); Fri, 15 May 2020 17:04:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589576696; 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=3caG0B1RGM0w2YEbxxrwWnjt85G7AlSJ61zuBN9U0lE=; b=T9Hj/h33x+hcV36RDRcl1F6Q3uRQUmHuWQSC2rJkGl47WPWm0zd4YOrDo9tCjf7jpE+d8w x1Yu7oknfSeeODx0JgYUoRzFDuvT3JOYPTHsFFm/n/ac+zxufrTKzFvgGrZyVsfD7qgV1v 917w+jcMzlXL5NLdPtf0XfzrzAWQX9A= 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-58-W0DOlcrlPGuDq6Uu0tbPDw-1; Fri, 15 May 2020 17:04:52 -0400 X-MC-Unique: W0DOlcrlPGuDq6Uu0tbPDw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DDC361005510; Fri, 15 May 2020 21:04:50 +0000 (UTC) Received: from treble (ovpn-117-151.rdu2.redhat.com [10.10.117.151]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1B98E5D9C9; Fri, 15 May 2020 21:04:50 +0000 (UTC) Date: Fri, 15 May 2020 16:04:48 -0500 From: Josh Poimboeuf To: Matt Helsley Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Julien Thierry , Miroslav Benes , Steven Rostedt Subject: Re: [RFC][PATCH 5/5] objtool: Report missing support for subcommands Message-ID: <20200515210448.jqseippuz52wx7ct@treble> References: <38a0c7a1ec8d98238379a322866c0432befc259b.1588888003.git.mhelsley@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <38a0c7a1ec8d98238379a322866c0432befc259b.1588888003.git.mhelsley@vmware.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 10:35:13AM -0700, Matt Helsley wrote: > The check and orc-related subcommands for objtool are x86-specific. > To make this clear to anyone using the tool return a non-zero exit > code and indicate in the help and usage output which commands are > (and are not) available. > > Signed-off-by: Matt Helsley I think I'd rather the simplest approach of just having the weak functions print an error and return an error code. At least for now I don't think we need to go through the trouble of advertising whether certain commands are available. Technically they are available, they just always fail :-) And, people don't tend to use objtool directly anyway. BTW, several of the patches didn't apply cleanly to tip/master, so you'll probably need to rebase for v2. There've been a lot of objtool changes lately. Peter's been busy... -- Josh