From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Jin Yao <yao.jin@linux.intel.com>
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
Date: Wed, 24 Mar 2021 10:05:18 -0300 [thread overview]
Message-ID: <YFs5DvUwtwblghqc@kernel.org> (raw)
In-Reply-To: <20210319070156.20394-2-yao.jin@linux.intel.com>
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...
- Arnaldo
> Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
> ---
> v3:
> - New in v3.
>
> tools/perf/tests/shell/stat+cvs_summary.sh | 31 ++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100755 tools/perf/tests/shell/stat+cvs_summary.sh
>
> diff --git a/tools/perf/tests/shell/stat+cvs_summary.sh b/tools/perf/tests/shell/stat+cvs_summary.sh
> new file mode 100755
> index 000000000000..dd14f2ce7f6b
> --- /dev/null
> +++ b/tools/perf/tests/shell/stat+cvs_summary.sh
> @@ -0,0 +1,31 @@
> +#!/bin/sh
> +# perf stat cvs summary test
> +# SPDX-License-Identifier: GPL-2.0
> +
> +set -e
> +
> +#
> +# 1.001364330 9224197 cycles 8012885033 100.00
> +# summary 9224197 cycles 8012885033 100.00
> +#
> +perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary 2>&1 | \
> +grep -e summary | \
> +while read summary num event run pct
> +do
> + if [ $summary != "summary" ]; then
> + exit 1
> + fi
> +done
> +
> +#
> +# 1.001360298 9148534 cycles 8012853854 100.00
> +#9148534 cycles 8012853854 100.00
> +#
> +perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary --no-cvs-summary 2>&1 | \
> +grep -e summary | \
> +while read num event run pct
> +do
> + exit 1
> +done
> +
> +exit 0
> --
> 2.17.1
>
--
- Arnaldo
next prev parent reply other threads:[~2021-03-24 13:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-19 7:01 [PATCH v3 1/2] perf stat: Align CSV output for summary mode Jin Yao
2021-03-19 7:01 ` [PATCH v3 2/2] perf test: Add CVS summary test Jin Yao
2021-03-24 13:05 ` Arnaldo Carvalho de Melo [this message]
2021-03-24 13:12 ` Arnaldo Carvalho de Melo
2021-03-24 13:15 ` Arnaldo Carvalho de Melo
2021-03-22 21:15 ` [PATCH v3 1/2] perf stat: Align CSV output for summary mode Jiri Olsa
2021-03-24 13:22 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YFs5DvUwtwblghqc@kernel.org \
--to=acme@kernel.org \
--cc=Linux-kernel@vger.kernel.org \
--cc=ak@linux.intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=jolsa@kernel.org \
--cc=kan.liang@intel.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=yao.jin@intel.com \
--cc=yao.jin@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.