Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2575114rwl; Thu, 13 Apr 2023 08:11:19 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvVvZPI7hJXSfIi7Xs+QO3t4Uo7jR11o3eR5N4taVrjgZOfDjc7td/fCYoHrFMD0E1T/j1 X-Received: by 2002:a05:6102:539:b0:42c:910d:26ee with SMTP id m25-20020a056102053900b0042c910d26eemr989132vsa.18.1681398678911; Thu, 13 Apr 2023 08:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681398678; cv=none; d=google.com; s=arc-20160816; b=njcq8Kjs8+1ntv4IyKDaU3SDiqMfxnlnKHXSvwTzDwTWg8SZNZ5/g7JYHIyVztmRUE lkLGr5GC+1w3BQy8H++ov7tXR4WWTcVhVrOgr99JLoj/Zg7Bpl/NLERhfZF9RRBu0bSW k2SmVucItJYxYWi7OH6I7UDUjzl4pygbUXEbbST6/BBOGvMRKXrjgcjMCN8H+KmcMb05 L5XtdBdAei0PyzwU8DHZ67zDNzNanv7ySstx6vla0ItXOcAZXNW1LYZbqy+m7/Kcnybd uk/lGSgJNb7SbmL8AcDoBmgm+ppMFamZRaVD687wIWVK8JzOy9miqzZl/Ed/ut8e6uL4 QmHA== 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=cI5WGmJ6kIJSRPouB+jvOw+AO6vB7qsNeKijJIkDnHA=; b=eMO8GbhbNqLjRa6rfwgS96WYSmgdvnFvNf10gOJXNOr0vPQtz+jJLJDk4GffiCOp8y ds9Q2wn+OP5vYW3QMe0Tra8Uai1FdGKoI9Fpanf/JHTMPZFTBNcGuYHpgT1KBnzpUcIp JruXkdbOpxwNGOfsZMQNZyWJUOoK5TUHjEZqT+2lHZW/IeT6SaMkPkmXYkGpKpANB/R2 n+ao4mLYdkxGMP/XCEAXnrsqehKKZv2Z8HCydG/I7HGcc50yhYl92gz1UiBEhDaNVw7S rfZQvN4gM1cXiUMLgFVF0t2sOyDrN6yjdu41mf5avC4z+ggG7Ac72wcdCCs/Cd7HXV7X 6nJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsjxHWvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020a056102094900b0042c367353a5si152321vsi.247.2023.04.13.08.11.02; Thu, 13 Apr 2023 08:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsjxHWvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231251AbjDMPFt (ORCPT + 99 others); Thu, 13 Apr 2023 11:05:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbjDMPFT (ORCPT ); Thu, 13 Apr 2023 11:05:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3072F8A74 for ; Thu, 13 Apr 2023 08:05:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C0BCF63F65 for ; Thu, 13 Apr 2023 15:05:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04D9CC433EF; Thu, 13 Apr 2023 15:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681398318; bh=6KTrVSn/znOz9zCt4gAlEJAA5/QLW7OKTX3z2wZg0gs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VsjxHWvl61uq5o5o6iqrKj/TwFcloZIT2HSlazALpOVP2v3BYt196lGUGXH+CsvLI qtdwJAu2oKaE2gpwIJxh0gn3EP5TgYaNoln5dx6cYhdDaRvcZdzLuZwQ3nYKeu/Hd1 FgGM0j+xmcS50rQxK8RpHodQrgdvUq6drCfg85iCiUGlcPNUY25G7qjdU4kLW12m6m gTKVkDTmAHWJPBxd8Mx/5mFuGhjfpxx7GgUoC8GnocJxtQ4bErnLrM4DYk4xkXtopJ YbaxMvwetM4JOLQTnbcvm+ZZB5Dli+nYSUl0eWoND8bQhM6VBRTwPOArgVIQBoO7Vt TwySrD02D6JRA== Date: Thu, 13 Apr 2023 08:05:16 -0700 From: Josh Poimboeuf To: Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Miroslav Benes Subject: Re: [PATCH v2 5/9] objtool: Add verbose option for disassembling affected functions Message-ID: <20230413150516.obilsce2akxihri6@treble> References: <4cadacc719db1e792c335309056960ca6f71139e.1681325924.git.jpoimboe@kernel.org> <20230413080527.GG4253@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230413080527.GG4253@hirez.programming.kicks-ass.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 13, 2023 at 10:05:27AM +0200, Peter Zijlstra wrote: > > @@ -118,6 +119,10 @@ int cmd_parse_options(int argc, const char **argv, const char * const usage[]) > > parse_options(envc, envv, check_options, env_usage, 0); > > } > > > > + env = getenv("OBJTOOL_VERBOSE"); > > + if (env && !strcmp(env, "1")) > > + opts.verbose = true; > > + > > argc = parse_options(argc, argv, check_options, usage, 0); > > if (argc != 1) > > usage_with_options(usage, check_options); > > No real objection; but I do feel obliged to point out that: > OBJTOOL_ARGS="-v" achieves much the same. But OBJTOOL_VERBOSE=1 just rolls off the fingers :-) -- Josh