diff options
author | Peter Zijlstra <peterz@infradead.org> | 2012-10-23 07:40:14 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-26 09:22:25 -0400 |
commit | 1f16c5754d3a4008c29f3bf67b4f1271313ba385 (patch) | |
tree | 365f7e0630b149593d81f56edc5b3f34cf2a3081 /tools/perf/Documentation/perf-stat.txt | |
parent | 54a3cf59b53b3f01989a28344ecf4cb68217a6f6 (diff) |
perf stat: Add --pre and --post command
In order to measure kernel builds, one has to do some pre/post cleanup
work in order to do the repeat build.
So provide --pre and --post command hooks to allow doing just that.
perf stat --repeat 10 --null --sync --pre 'make -s O=defconfig-build/clean' \
-- make -s -j64 O=defconfig-build/ bzImage
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Stephane Eranian <eranian@gmail.com>
Link: http://lkml.kernel.org/r/1350992414.13456.5.camel@twins
[ committer note: Added respective entries in Documentation/perf-stat.txt ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation/perf-stat.txt')
-rw-r--r-- | tools/perf/Documentation/perf-stat.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-stat.txt b/tools/perf/Documentation/perf-stat.txt index 2fa173b51970..cf0c3107e06e 100644 --- a/tools/perf/Documentation/perf-stat.txt +++ b/tools/perf/Documentation/perf-stat.txt | |||
@@ -108,6 +108,11 @@ with it. --append may be used here. Examples: | |||
108 | 3>results perf stat --log-fd 3 -- $cmd | 108 | 3>results perf stat --log-fd 3 -- $cmd |
109 | 3>>results perf stat --log-fd 3 --append -- $cmd | 109 | 3>>results perf stat --log-fd 3 --append -- $cmd |
110 | 110 | ||
111 | --pre:: | ||
112 | --post:: | ||
113 | Pre and post measurement hooks, e.g.: | ||
114 | |||
115 | perf stat --repeat 10 --null --sync --pre 'make -s O=defconfig-build/clean' -- make -s -j64 O=defconfig-build/ bzImage | ||
111 | 116 | ||
112 | 117 | ||
113 | EXAMPLES | 118 | EXAMPLES |