Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp34336pxf; Wed, 24 Mar 2021 20:04:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyClmZMF7Ka2bFYqF2Uy9FETdzV+DvdGcmGV952HrMwmwiGQRoBwccTstnErIC7vS9jPyrD X-Received: by 2002:a17:906:7842:: with SMTP id p2mr7329268ejm.87.1616641499511; Wed, 24 Mar 2021 20:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616641499; cv=none; d=google.com; s=arc-20160816; b=e0ezA2uyKfPSVZ/ovaDdZXSL3khw7ji9mBCSUW0mMVYiUN6EexDLOaKESPsccRBhQs pgpTuSsu1A9JHKYZrgEwDkS/Kr6cQDc+yZYnswePLOYJw+7bTx1ANsfIq2SYYWsBujX6 ZP4AhlXgkxeMSqhep8ul7bG55HkDOPrNp0JKR3gsVnAOiCKtzQpDF5z+C6zNUqemoT9w rx5sVkJ2uQEeINga79lvPmFCW27mPcDYoaCR5omZFOetZTKUugfmzH9OeLBGGFsOfM4A CT0xlbaBMy4WnrpsNIoMWNtduL635g9VhNtdSj3vc00ExKhmiRfZcH4OIhYNrej+37ex RfZw== 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=DTqs7K+PPqFJlCxM+1fteCJ09hKZ4kWsUxyTIbNiEVU=; b=yZTkaFhzcj2xgoaZt/mqqB3BqNycC9keynud4Hpax6IGFkccf061wzTOvSghD7l0Nl 8H26Infkixl2OapHJj6OTKwAMBIkiUjhEMwScsmoXS2BtAe4p0v4PZ42Z1TtfDacrzix jAzCilHPGIs/Knv3lAniqnZ3oPJuFvY2t11eUIraszYhOcXyRI6EQQzxH9rn0JGULVGP bYf9N0PTWjCpfiOjLVIo6LDgaUxuL64EEIU0hE4M9eMLKJjBWzWVttP3Jk+kE420Qtnt pWlpgxLzoVsZ0V5UUBGQVXw+ERQ5z1rnYJo0/O0oNMMiomhoLhnJXb21IT4M2CisweHI dyYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XN1hk9Ss; 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 dk21si3217870ejb.324.2021.03.24.20.04.37; Wed, 24 Mar 2021 20:04:59 -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=@kernel.org header.s=k20201202 header.b=XN1hk9Ss; 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 S234474AbhCXNNP (ORCPT + 99 others); Wed, 24 Mar 2021 09:13:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233465AbhCXNMr (ORCPT ); Wed, 24 Mar 2021 09:12:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40C7961A0C; Wed, 24 Mar 2021 13:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616591566; bh=OKs1mD2qebIMJb13DJKJIHreCaRQdOzExwSlbZBjb1o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XN1hk9SsmnUD4Hp0fO8t9nyqpHmjXujFW7nS+NaHWuRMWPv+ij9FaKf1ISYxQuiuU aRJppYBOkbafZKjw2qDn7cXpnSZd5saAhX1tDP+6Au/7kILtre/XxEB1ZwWJyO0HJq bamq0UNVS0FcT4yHek7cnRDZM4QeOjCFt8Ysv+7g5niOw/Z2gmcSPo0byZHr6/NKEf 9VlYZszUMZoL3HcyYqCmBPWs6gDZDdQh8eArwMFSzMOtUFUTWGWF16+G9iJ1BYrRPu kXXNtVlbrqJegbXxt/7eaWzsRd/lbIeZNQdOEu7QAVql+XIu1VRw5a3T9nW7Oatcy1 6S4Ifinxqe41w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id D954D40647; Wed, 24 Mar 2021 10:12:43 -0300 (-03) Date: Wed, 24 Mar 2021 10:12:43 -0300 From: Arnaldo Carvalho de Melo To: Jin Yao Cc: jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH v3 2/2] perf test: Add CVS summary test Message-ID: References: <20210319070156.20394-1-yao.jin@linux.intel.com> <20210319070156.20394-2-yao.jin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Mar 24, 2021 at 10:05:18AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Mar 19, 2021 at 03:01:56PM +0800, Jin Yao escreveu: > > The patch "perf stat: Align CSV output for summary mode" aligned > > CVS output and added "summary" to the first column of summary > > lines. > > > > Now we check if the "summary" string is added to the CVS output. > > > > If we set '--no-cvs-summary' option, the "summary" string would > > not be added, also check with this case. > > You mixed up cvs with csv in various places, I'm fixing it up... This, for the first patch, now fixing the second. diff --git a/tools/perf/Documentation/perf-stat.txt b/tools/perf/Documentation/perf-stat.txt index e81a45cadd4a0bdb..6ec5960b08c3de21 100644 --- a/tools/perf/Documentation/perf-stat.txt +++ b/tools/perf/Documentation/perf-stat.txt @@ -482,14 +482,14 @@ convenient for post processing. --summary:: Print summary for interval mode (-I). ---no-cvs-summary:: +--no-csv-summary:: Don't print 'summary' at the first column for CVS summary output. This option must be used with -x and --summary. This option can be enabled in perf config by setting the variable -'stat.no-cvs-summary'. +'stat.no-csv-summary'. -$ perf config stat.no-cvs-summary=true +$ perf config stat.no-csv-summary=true EXAMPLES -------- diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 6daa090129a65c78..2a2c15cac80a3bee 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -1093,9 +1093,9 @@ void perf_stat__set_big_num(int set) stat_config.big_num = (set != 0); } -void perf_stat__set_no_cvs_summary(int set) +void perf_stat__set_no_csv_summary(int set) { - stat_config.no_cvs_summary = (set != 0); + stat_config.no_csv_summary = (set != 0); } static int stat__set_big_num(const struct option *opt __maybe_unused, @@ -1254,8 +1254,8 @@ static struct option stat_options[] = { "threads of same physical core"), OPT_BOOLEAN(0, "summary", &stat_config.summary, "print summary for interval mode"), - OPT_BOOLEAN(0, "no-cvs-summary", &stat_config.no_cvs_summary, - "don't print 'summary' for CVS summary output"), + OPT_BOOLEAN(0, "no-csv-summary", &stat_config.no_csv_summary, + "don't print 'summary' for CSV summary output"), OPT_BOOLEAN(0, "quiet", &stat_config.quiet, "don't print output (useful with record)"), #ifdef HAVE_LIBPFM diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index df78f11f6fb50a0b..6bcb5ef221f8c1be 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -457,8 +457,8 @@ static int perf_stat_config(const char *var, const char *value) if (!strcmp(var, "stat.big-num")) perf_stat__set_big_num(perf_config_bool(var, value)); - if (!strcmp(var, "stat.no-cvs-summary")) - perf_stat__set_no_cvs_summary(perf_config_bool(var, value)); + if (!strcmp(var, "stat.no-csv-summary")) + perf_stat__set_no_csv_summary(perf_config_bool(var, value)); /* Add other config variables here. */ return 0;