All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: 禹舟键 <ufo19890607@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	mingo@redhat.com,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@kernel.org>, David Ahern <dsahern@gmail.com>,
	Namhyung Kim <namhyung@kernel.org>,
	Milian Wolff <milian.wolff@kdab.com>,
	Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>,
	Wind Yu <yuzhoujian@didichuxing.com>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Wang Nan <wangnan0@huawei.com>,
	Kan.liang@intel.com, linux-perf-users@vger.kernel.org,
	linux-kernel@vger.kernel.org, acme@redhat.com
Subject: Re: [PATCH v4 0/2] perf stat: Add interval-count and time support
Date: Thu, 15 Feb 2018 11:44:42 +0100	[thread overview]
Message-ID: <20180215104442.GA12714@krava> (raw)
In-Reply-To: <CAHCio2iVBoEXEv3mXzq34FsDZXJT9Oig+SfDwv3vneYfZQ089g@mail.gmail.com>

On Thu, Feb 15, 2018 at 05:33:07PM +0800, 禹舟键 wrote:
> PING
> 
> 2018-01-29 18:25 GMT+08:00 Jiri Olsa <jolsa@redhat.com>:

Arnaldo, could you pelase check on this?

thanks,
jirka

> 
> > On Mon, Jan 29, 2018 at 10:25:21AM +0100, ufo19890607 wrote:
> > > From: yuzhoujian <yuzhoujian@didichuxing.com>
> > >
> > > Introduce two new options for perf stat and update perf-stat
> > documentation
> > > accordingly.
> > >
> > > The interval-count option can be used to print counts for fixed number of
> > > times, and it should be used specifically with "-I" option.
> > >
> > > Show below is the output of the interval-count option for perf stat.
> > >
> > >         $ perf stat -I 1000 --interval-count 2 -e cycles -a
> > >         #           time             counts unit events
> > >              1.002827089         93,884,870      cycles
> > >              2.004231506         56,573,446      cycles
> > >
> > > The time option can be used to print counts after a period of time, and
> > it
> > > should not be used with "-I" option.
> > >
> > > Show below is the output of the time option for perf stat.
> > >
> > >         $ perf stat --time 2000 -e cycles -a
> > >         Performance counter stats for 'system wide':
> > >
> > >                 157,260,423      cycles
> > >
> > >                 2.003060766 seconds time elapsed
> > >
> > > yuzhoujian (2):
> > >   perf stat: Add support to print counts for fixed times
> > >   perf stat: Add support to print counts after a period of time
> > >
> > > Changes since v3:
> > > - merge interval_count check and times check to one line.
> > > - fix the wrong indent in stat.h
> > > - use stat_config.times instead of 'times' in cmd_stat function.
> >
> > Acked-by: Jiri Olsa <jolsa@kernel.org>
> >
> > thanks,
> > jirka
> >
> > >
> > > Changes since v2:
> > > - modify the time check in __run_perf_stat func to keep some consistency
> > >   with the workload case.
> > > - add the warning when the time is set between 10ms to 100ms.
> > > - add the pr_err when the time is set below 10ms.
> > >
> > > Changes since v1:
> > > - change the name of the new option "times-print" to "interval-count".
> > > - keep the interval-count option interval specifically.
> > >
> > >
> > >  tools/perf/Documentation/perf-stat.txt | 10 +++++++
> > >  tools/perf/builtin-stat.c              | 53
> > ++++++++++++++++++++++++++++++++--
> > >  tools/perf/util/stat.h                 |  2 ++
> > >  3 files changed, 62 insertions(+), 3 deletions(-)
> > >
> > > --
> > > 2.14.1
> > >
> >

      parent reply	other threads:[~2018-02-15 10:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-29  9:25 [PATCH v4 0/2] perf stat: Add interval-count and time support ufo19890607
2018-01-29  9:25 ` [PATCH v4 1/2] perf stat: Add support to print counts for fixed times ufo19890607
2018-02-17 11:23   ` [tip:perf/core] " tip-bot for yuzhoujian
2018-01-29  9:25 ` [PATCH v4 2/2] perf stat: Add support to print counts after a period of time ufo19890607
2018-02-15 13:39   ` Arnaldo Carvalho de Melo
2018-02-16 13:18     ` Arnaldo Carvalho de Melo
2018-02-17 11:23   ` [tip:perf/core] " tip-bot for yuzhoujian
2018-01-29 10:25 ` [PATCH v4 0/2] perf stat: Add interval-count and time support Jiri Olsa
     [not found]   ` <CAHCio2iVBoEXEv3mXzq34FsDZXJT9Oig+SfDwv3vneYfZQ089g@mail.gmail.com>
2018-02-15 10:44     ` Jiri Olsa [this message]

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=20180215104442.GA12714@krava \
    --to=jolsa@redhat.com \
    --cc=Kan.liang@intel.com \
    --cc=acme@redhat.com \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=arnaldo.melo@gmail.com \
    --cc=dsahern@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=milian.wolff@kdab.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=ufo19890607@gmail.com \
    --cc=wangnan0@huawei.com \
    --cc=yuzhoujian@didichuxing.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.