Commit 8c207692 authored by Shawn Bohrer's avatar Shawn Bohrer Committed by Arnaldo Carvalho de Melo

perf stat: Document missing options

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1291168642-11402-12-git-send-email-shawn.bohrer@gmail.com>
Signed-off-by: default avatarShawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f68d6bd4
...@@ -8,8 +8,8 @@ perf-stat - Run a command and gather performance counter statistics ...@@ -8,8 +8,8 @@ perf-stat - Run a command and gather performance counter statistics
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'perf stat' [-e <EVENT> | --event=EVENT] [-S] [-a] <command> 'perf stat' [-e <EVENT> | --event=EVENT] [-a] <command>
'perf stat' [-e <EVENT> | --event=EVENT] [-S] [-a] -- <command> [<options>] 'perf stat' [-e <EVENT> | --event=EVENT] [-a] -- <command> [<options>]
DESCRIPTION DESCRIPTION
----------- -----------
...@@ -35,21 +35,33 @@ OPTIONS ...@@ -35,21 +35,33 @@ OPTIONS
child tasks do not inherit counters child tasks do not inherit counters
-p:: -p::
--pid=<pid>:: --pid=<pid>::
stat events on existing pid stat events on existing process id
-t::
--tid=<tid>::
stat events on existing thread id
-a:: -a::
system-wide collection --all-cpus::
system-wide collection from all CPUs
-c:: -c::
scale counter values --scale::
scale/normalize counter values
-r::
--repeat=<n>::
repeat command and print average + stddev (max: 100)
-B:: -B::
--big-num::
print large numbers with thousands' separators according to locale print large numbers with thousands' separators according to locale
-C:: -C::
--cpu=:: --cpu=::
Count only on the list of cpus provided. Multiple CPUs can be provided as a Count only on the list of CPUs provided. Multiple CPUs can be provided as a
comma-sperated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2. comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
In per-thread mode, this option is ignored. The -a option is still necessary In per-thread mode, this option is ignored. The -a option is still necessary
to activate system-wide monitoring. Default is to count on all CPUs. to activate system-wide monitoring. Default is to count on all CPUs.
...@@ -58,6 +70,14 @@ to activate system-wide monitoring. Default is to count on all CPUs. ...@@ -58,6 +70,14 @@ to activate system-wide monitoring. Default is to count on all CPUs.
Do not aggregate counts across all monitored CPUs in system-wide mode (-a). Do not aggregate counts across all monitored CPUs in system-wide mode (-a).
This option is only valid in system-wide mode. This option is only valid in system-wide mode.
-n::
--null::
null run - don't start any counters
-v::
--verbose::
be more verbose (show counter open errors, etc)
EXAMPLES EXAMPLES
-------- --------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment