Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp157276pxk; Wed, 16 Sep 2020 22:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTfM9c+8cp4mSCm9zQZ2bG/1SpHAppenOyLRWUshyNzBEw2ubfXglAIesKQgUYIx7KP1tu X-Received: by 2002:aa7:cad3:: with SMTP id l19mr29804483edt.352.1600320313490; Wed, 16 Sep 2020 22:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600320313; cv=none; d=google.com; s=arc-20160816; b=csw+hIAaaPykv6/ss77abBGIsABf//qO+5yzeMC7wN5G2PEutZYYgbLK7SmoL6BJmV NimDBv3oORPrWXqw1V/OBRTLp393ZtxDli8u9/rc0d+7qNBF0foSUSfGWjVXkmeuoRQ/ GzJ4NXyhHvzJ31XwMA7+MJEdwky6hwgkS04YMROhoDw2SCeg+SO03FCKU6MV3hK9KXuh eMDksU9wo7VRcJQT/vxAmGS1WX7W/hltqtWUWwWZ6W8oImOfiYAfYHSGPvO9l2ccPVAN evRpmnu5I5BXct9WCC9mx9p2bWP05TYMDDxblQG1nGdpOfu9fQ4VE2nxu4CcyJZK8hOJ 2phg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=LA/6WNJUJj4/BwlueXf+wc0/D0puEAWQO2AdVn51wXk=; b=IYYs6CYhBfoqjvi3KNid0297SwmUzhCK89NNzEXcOhbJg0WAbJgjV5L123BNfb2IpA m9APUnmzcKf9qnuW0aqXMBozKWPGsdhlAMNVbsYqMISTY5mXeoKCqnAukuWRTDUTxFfK pNIR0RgXeTmu/M8u8yELdYq0oR3yHCUnoscHigerXWi9+LQe+OY2qpsGh5ojn1ze1WEb RCSXZ25wYqvm/yeup+5lHD1xFymLrv/F3LaLcB5is2Qpsc+ONFX8W2b5RCE5pmTmJ2Mu 5Wx91Uw6e7NHEqZWJ4/Y9HVCMjlZhiWiej/76pB75rTJsTcu85eEoGVnF1C0PgO7C7dr lIgQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si3301776edj.540.2020.09.16.22.24.50; Wed, 16 Sep 2020 22:25:13 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726267AbgIQFXZ (ORCPT + 99 others); Thu, 17 Sep 2020 01:23:25 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53732 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgIQFXT (ORCPT ); Thu, 17 Sep 2020 01:23:19 -0400 Received: by mail-wm1-f66.google.com with SMTP id x23so651110wmi.3 for ; Wed, 16 Sep 2020 22:23:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LA/6WNJUJj4/BwlueXf+wc0/D0puEAWQO2AdVn51wXk=; b=Hq+XR8pAEagwYVqpnbO6EizvK21W28nE+rc7595x+4igckRxytXcHQSowlfUSBy+Oj MnH2rh7C4xQKGEOog5vJ2hXLAQg4TVYxYfNUzZEcCFTiZoq2huaW9atQqjUwQ5jVSLQy ++QecEO46QDGcpVauaA0G77jLXYgB0M5JvnXM5HK6/I24plZEy96ZqSzZ0Kq2+Cg6KgU rfDDaarqr2fy6I749T9xFsK1pGX/vFRU0XhMp4qnN5VefnCipmKgx0fNpugeV/ixHtkZ U0EfxlRXoNZJDYGe5/KhDN83uWRc/A9EgoFrX2b42+Wj8Tk1egkKPB+In0EnNduBShrs RNnA== X-Gm-Message-State: AOAM530E+Tp7IfVnFIM/OHN8pIbcxgxd1YgQK4hz4XiV7xXggOBxdRV2 NOuMl3PveF9szyRnt8xntgWKSD770OpxGEthSUo= X-Received: by 2002:a7b:c404:: with SMTP id k4mr7957800wmi.168.1600320198027; Wed, 16 Sep 2020 22:23:18 -0700 (PDT) MIME-Version: 1.0 References: <20200917031414.47498-1-liwei391@huawei.com> In-Reply-To: <20200917031414.47498-1-liwei391@huawei.com> From: Namhyung Kim Date: Thu, 17 Sep 2020 14:23:07 +0900 Message-ID: Subject: Re: [PATCH] Revert "perf report: Treat an argument as a symbol filter" To: Wei Li Cc: Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-kernel , Li Bin , guohanjun@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 12:15 PM Wei Li wrote: > > Since commit 6db6127c4dad ("perf report: Treat an argument as a symbol > filter"), the only one unrecognized argument for perf-report is treated > as a symbol filter. This is not described in man page nor help info, > and the result is really confusing, especially when it's misspecified by > the user (e.g. missing -i for perf.data). How about adding documentation then? Thanks Namhyung > > As we can use "--symbol-filter=" if we really want to filter a symbol, > it may be better to revert this misfeature. > > Signed-off-by: Wei Li > --- > tools/perf/builtin-report.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c > index 3c74c9c0f3c3..f57ebc1bcd20 100644 > --- a/tools/perf/builtin-report.c > +++ b/tools/perf/builtin-report.c > @@ -1317,13 +1317,9 @@ int cmd_report(int argc, const char **argv) > argc = parse_options(argc, argv, options, report_usage, 0); > if (argc) { > /* > - * Special case: if there's an argument left then assume that > - * it's a symbol filter: > + * Any (unrecognized) arguments left? > */ > - if (argc > 1) > - usage_with_options(report_usage, options); > - > - report.symbol_filter_str = argv[0]; > + usage_with_options(report_usage, options); > } > > if (annotate_check_args(&report.annotation_opts) < 0) > -- > 2.17.1 >