Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp563065rdf; Fri, 3 Nov 2023 08:29:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHE+7vGyPeoBT/ibXc+dctdV2jNgFItTK/HCFuc4jiqqPj2YDQHWIH5LLkhOKuJvqbGlidH X-Received: by 2002:a05:6871:48ca:b0:1e9:95c8:e15e with SMTP id qf10-20020a05687148ca00b001e995c8e15emr19461081oab.14.1699025387870; Fri, 03 Nov 2023 08:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699025387; cv=none; d=google.com; s=arc-20160816; b=Vd1UoylO9IondDAbX5ECfXCn394S4Y5hM9ua50dlSe3V3kBDR0Qnfz8ADmxSH2V3Fq TcXuD/dCevTvAYrHuqbp4Cb9ZHW4U5B0Z/13S0MxaVNQ7Xjl0thMiWTqowa4v3UVsw4Z 9gbzAJ2h4ELxj5EQ0vKkXy+Jqz57pR2bL4yc9L+JoVxhtQc/IdxNbNe5i4gxgnhZ2EmY 4VH+r59PUipgtWffSDuNyvdq6W7inowrzKODRaAYCFy9zvWx2HyTCGvT8YCGouFokili Ccaouoa3LY7vj+IYftn2VOrhQoFanAzNZsdLZj775MduOhQe7jC29Un9Et4nUyG+38Jf SPUQ== 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=06kYJuflmZCbDQXeFSYXFRwYTRv5Wk+npjvsqtrztC8=; fh=ONJLBIsP4/DUqk+5sRy0C2tKk83cVx+im8Ibr9fm8RI=; b=qDPn+OzhIl65lR4c4+KZvTGnSWV4W5qGGHA8ej5X3nmoxIXm2ghN3MVrrsFLc/Jsnn QyisPlRNcjFjVs3YtqOJ7p3YTeNFrZ2r2MY2SiJv3vPdEpi++rfyWeEe+mqVRXW/srR4 YgGAn86+CQA6ETZAaDcMiBk06a3U4a0S1CD0eGsYSlQYKFDGTWKG6+zDFUZt7necQoBI CqlyDhPxIYtEF7/c+uzZHqrGM78cILpRszFTZSCQy3Hu1npA6Z1RTOJ7N2RFBEUNL1TN SNSyIub9Eyn6wJjejiF42pkBDn/yUDiE+r3XbzV8MiiDTlYtFviFlVkXvVlgnD0uFTKz mvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pLKrlXw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id m67-20020a633f46000000b005ab7b51ab6csi1626936pga.515.2023.11.03.08.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 08:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pLKrlXw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2BB5483154AF; Fri, 3 Nov 2023 08:29:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233653AbjKCP3h (ORCPT + 99 others); Fri, 3 Nov 2023 11:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbjKCP3g (ORCPT ); Fri, 3 Nov 2023 11:29:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE35AD47 for ; Fri, 3 Nov 2023 08:29:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A658C433C8; Fri, 3 Nov 2023 15:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699025374; bh=edDh2XpsaRN563DnkZjJS4NVRd5Q2t6fG+6H66m7udo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pLKrlXw0L/S2UskO27XAQmgmPT6dZ9tMrLKEzIAGadNvTyjmUTgfNTp2/NRvrhXOc AU7doFGJd5md7YUNuCv/hT6BFkdkw/Iz/mX8YeQXa3iAE9xw2C8NIDIDnAr95xFQqF ozvx+yZZNsHu2cC04cn4sGCnTqMVyoQpqAivCylvbvEzLg91ZCfwRVFlLA6YUd+Ocf 77mfT7iqC37kNp56ClsZNfCH2r/q0enSSej2pokdgN5cLW3aIRCVkJtBM7miOhsGWU m8wJ/8JGgvLWLBcjastpZYJCwVI2gEF/6NFKwkydGRDfXthcRja6S6YOkW0u+y5kgV H0phMvB4epNVQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 768A54035D; Fri, 3 Nov 2023 12:29:31 -0300 (-03) Date: Fri, 3 Nov 2023 12:29:31 -0300 From: Arnaldo Carvalho de Melo To: Yang Jihong Cc: peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] perf debug: List available options when no variable is specified Message-ID: References: <20231101064543.1481957-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231101064543.1481957-1-yangjihong1@huawei.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 08:29:45 -0700 (PDT) Em Wed, Nov 01, 2023 at 06:45:43AM +0000, Yang Jihong escreveu: > Minor help message improvement for `perf --debug` > Before: > # perf --debug > No variable specified for --debug. > Usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] > After: > # perf --debug > No variable specified for --debug, available options: verbose,ordered-events,stderr,data-convert,perf-event-open > > Usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] Acked-by: Arnaldo Carvalho de Melo - Arnaldo > Suggested-by: Arnaldo Carvalho de Melo > Signed-off-by: Yang Jihong > --- > > Changes since v1: > - Provide helper to iterate debug_opts and print name instead of adding a new variable.