Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2812492rwd; Fri, 26 May 2023 11:35:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6r6PMYPNoT2KoWzxLpEPEO8EPBybDC6ixgSi8DA7Z0Z3GT7HSXr3t1TJ9Yhx0FBxb4g+AD X-Received: by 2002:a17:902:bc43:b0:1af:de3d:bbe6 with SMTP id t3-20020a170902bc4300b001afde3dbbe6mr3850868plz.2.1685126113042; Fri, 26 May 2023 11:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685126113; cv=none; d=google.com; s=arc-20160816; b=teous7N+GdUXr8mIgZVcNq6w3w3kp7vn8hPTy1NdL6Z4PPCoKumR2RFMvLHzLQ3FXt 3fGb1KsmQfTantZj/anOib2MxmptLjQLBO6ODPCsv9/53QbuqdDOyRtYkfokdSCfpxX4 z8/KnT4aEpzj1qzugVjvV7cQBnip0dsfoB6T7O/2O5WnhGrs8YobwFc47aZ10CRN4L+h pnonZYJyrhkPuU+CFexMVR5E04nAxc5q1581v6bz+nTWBZsURE2mzXiPkJn4bwLFlEIK VVnEKsg6u2tQEzIDvNznOTLkdqTO7Wk0cDKKfsCGOSZXLCGOvKpfVOO4dzn8oFW1Cy9I CqlQ== 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=YEoY6EUu+2p8iC51ttdQJ0OzH8ELIo5+rR82+faqbW0=; b=H77KzTxVNfrbJcLtiR3llsWLu9WiTkmhLb0Q8S99B0SFQIjNVGfR8s4FZE+Wr/g9ro 6GS3vlaSka2u2i3f/RfSUk8Q3QxJi+NsE2KwFORw5luueRawQJAorf3wFKYwzhlicYkE QmuQXH8tiHKqguN0KGZyhu6a7WUAuXdJjK/Wn2bmBHUxoojWFyMbhYHzKx90bWg2u2RE C9lsbUZwAJCkw3NxFmoGcVuqaEWXA212NorHtQYzFEiMgmMS16Z5cLyQLG9rw2SRH2yJ ofH5ZiyRM3FM33KdoGLSxd0EFkfJmPzaN4905TcW43+JIsQlUeVf+0KHcKcq8irhsDAl tmnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g638a1nP; 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 z2-20020a170903018200b001afba64004asi2937550plg.115.2023.05.26.11.34.54; Fri, 26 May 2023 11:35:13 -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=g638a1nP; 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 S242226AbjEZSTn (ORCPT + 99 others); Fri, 26 May 2023 14:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbjEZSTl (ORCPT ); Fri, 26 May 2023 14:19:41 -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 8B82B12A; Fri, 26 May 2023 11:19:39 -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 11CF365227; Fri, 26 May 2023 18:19:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D606C433EF; Fri, 26 May 2023 18:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685125178; bh=b2wS80YPkzQW4CpsgVgq7KlFFeGgYaSeAXgGy9lqXqQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g638a1nPAVGC0LYAG40S+1aLo38wyF3a8ds9brIOTpXc8qO+WXLs7flH+oKsNANoE mZf7GDhdpRjWOdQvgbznH4JjkdljbIBfb4tkjrgxW4w5q+dss5Z0O06DuEzlMkeIxe q/Woe4elReF/TZd1MKYSXrKD/IdBR809uTT0eytHX1EVHJRR87TBg6p0RC7bvrMnH9 p9ZPJM+HOuoWisEA16VIqmPUTLbD6ktELjeU1hnb1bJQ2xJEf8+csHcG5mSYY0xbJ2 Ago3H4hNcZMxaMce0InWjXp8G2fpHChLkJ+XKXGS37gg86BHWbUzSDQuwDrXq1f39e k28lU4O+fCkDA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B9454403B5; Fri, 26 May 2023 15:19:35 -0300 (-03) Date: Fri, 26 May 2023 15:19:35 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Changbin Du Subject: Re: [PATCH] perf ftrace latency: Remove unnecessary "--" from --use-nsec option Message-ID: References: <20230525212038.3535851-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230525212038.3535851-1-namhyung@kernel.org> X-Url: http://acmel.wordpress.com 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,T_SCC_BODY_TEXT_LINE 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 Em Thu, May 25, 2023 at 02:20:38PM -0700, Namhyung Kim escreveu: > The option name should not have the dashes. Current version shows four > dashes for the option. > > $ perf ftrace latency -h > > Usage: perf ftrace [] [] > or: perf ftrace [] -- [] [] > or: perf ftrace {trace|latency} [] [] > or: perf ftrace {trace|latency} [] -- [] [] > > -b, --use-bpf Use BPF to measure function latency > -n, ----use-nsec Use nano-second histogram > -T, --trace-funcs > Show latency of given function Thanks, applied. - Arnaldo > Fixes: 84005bb61486 ("perf ftrace latency: Add -n/--use-nsec option") > Signed-off-by: Namhyung Kim > --- > tools/perf/builtin-ftrace.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c > index ad2a9ae041f6..ac2e6c75f912 100644 > --- a/tools/perf/builtin-ftrace.c > +++ b/tools/perf/builtin-ftrace.c > @@ -1177,7 +1177,7 @@ int cmd_ftrace(int argc, const char **argv) > OPT_BOOLEAN('b', "use-bpf", &ftrace.target.use_bpf, > "Use BPF to measure function latency"), > #endif > - OPT_BOOLEAN('n', "--use-nsec", &ftrace.use_nsec, > + OPT_BOOLEAN('n', "use-nsec", &ftrace.use_nsec, > "Use nano-second histogram"), > OPT_PARENT(common_options), > }; > -- > 2.41.0.rc0.172.g3f132b7071-goog > -- - Arnaldo