public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: David Ahern <dsahern@gmail.com>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
	Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>,
	Runzhen Wang <runzhen@linux.vnet.ibm.com>
Subject: Re: [PATCH 2/2] perf kvm: Update documentation with live command
Date: Thu, 8 Aug 2013 11:41:24 -0300	[thread overview]
Message-ID: <20130808144124.GC2851@ghostprotocols.net> (raw)
In-Reply-To: <1375926999-75129-2-git-send-email-dsahern@gmail.com>

Em Wed, Aug 07, 2013 at 09:56:39PM -0400, David Ahern escreveu:
> Update perf-kvm documentation with new live subcommand. Add -p/--pid option
> for perf-kvm-stat-report as well.

Minor nitpicks, that I'm fixing up, below. Applied.
 
> Signed-off-by: David Ahern <dsahern@gmail.com>
> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Jiri Olsa <jolsa@redhat.com>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
> Cc: Runzhen Wang <runzhen@linux.vnet.ibm.com>
> ---
>  tools/perf/Documentation/perf-kvm.txt |   46 +++++++++++++++++++++++++++++++--
>  1 file changed, 44 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/perf/Documentation/perf-kvm.txt b/tools/perf/Documentation/perf-kvm.txt
> index 326f2cb..ac84db2 100644
> --- a/tools/perf/Documentation/perf-kvm.txt
> +++ b/tools/perf/Documentation/perf-kvm.txt
> @@ -13,6 +13,7 @@ SYNOPSIS
>  	{top|record|report|diff|buildid-list}
>  'perf kvm' [--host] [--guest] [--guestkallsyms=<path> --guestmodules=<path>
>  	| --guestvmlinux=<path>] {top|record|report|diff|buildid-list|stat}
> +'perf kvm stat [record|report|live] [<options>]
>  
>  DESCRIPTION
>  -----------
> @@ -50,6 +51,10 @@ There are a couple of variants of perf kvm:
>    'perf kvm stat report' reports statistical data which includes events
>    handled time, samples, and so on.
>  
> +  'perf kvm stat live' reports statistical data in a live mode (similar to
> +  record + report but with statistical data updated live at a given display
> +  rate).
> +
>  OPTIONS
>  -------
>  -i::
> @@ -85,13 +90,50 @@ STAT REPORT OPTIONS
>  --vcpu=<value>::
>         analyze events which occures on this vcpu. (default: all vcpus)
>  
> ---events=<value>::
> -       events to be analyzed. Possible values: vmexit, mmio, ioport.


> +--event=<value>::
> +       event to be analyzed. Possible values: vmexit, mmio, ioport.
>         (default: vmexit)
>  -k::
>  --key=<value>::
>         Sorting key. Possible values: sample (default, sort by samples

Here you start, correctly, with a capital letter.

>         number), time (sort by average time).
> +-p::
> +--pid=::
> +    Analyze events only for given process ID(s) (comma separated list).
> +
> +STAT LIVE OPTIONS
> +-----------------
> +-d::
> +--display::
> +        Time in seconds between display updates
> +
> +-m::
> +--mmap-pages=::
> +    Number of mmap data pages. Must be a power of two.
> +
> +-a::
> +--all-cpus::
> +        System-wide collection from all CPUs.
> +
> +-p::
> +--pid=::
> +    Analyze events only for given process ID(s) (comma separated list).
> +
> +--vcpu=<value>::
> +       analyze events which occures on this vcpu. (default: all vcpus)

Here you don't.

> +
> +
> +--event=<value>::
> +       event to be analyzed. Possible values: vmexit, mmio, ioport.
> +       (default: vmexit)

Ditto

> +-k::
> +--key=<value>::
> +       Sorting key. Possible values: sample (default, sort by samples
> +       number), time (sort by average time).
> +
> +--duration=<value>::
> +       Show events other than HLT that take longer than duration usecs.
>  
>  SEE ALSO
>  --------
> -- 
> 1.7.10.1

  reply	other threads:[~2013-08-08 14:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-08  1:56 [PATCH 1/2] perf kvm: option to print events that exceed a duration -v2 David Ahern
2013-08-08  1:56 ` [PATCH 2/2] perf kvm: Update documentation with live command David Ahern
2013-08-08 14:41   ` Arnaldo Carvalho de Melo [this message]
2013-08-15  7:54   ` [tip:perf/core] " tip-bot for David Ahern
2013-08-08 14:39 ` [PATCH 1/2] perf kvm: option to print events that exceed a duration -v2 Arnaldo Carvalho de Melo
2013-08-15  7:54 ` [tip:perf/core] perf kvm: Option to print events that exceed a duration tip-bot for David Ahern

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=20130808144124.GC2851@ghostprotocols.net \
    --to=acme@ghostprotocols.net \
    --cc=dsahern@gmail.com \
    --cc=fweisbec@gmail.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=runzhen@linux.vnet.ibm.com \
    --cc=xiaoguangrong@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox