aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2013-02-14 07:57:28 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-25 15:09:24 -0400
commitd4304958a25414a6e67b8a41c0f230e05cafafb6 (patch)
tree650bb75d6345b03c7b42008f3825ddba1730c59d /tools/perf
parent86ee6e18f6cb43ab0cb67347bda5b6f5b016121d (diff)
perf stat: Rename --aggr-socket to --per-socket
To make it more obvious what this option does as suggested by Andi on LKML. Signed-off-by: Stephane Eranian <eranian@google.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1360846649-6411-3-git-send-email-eranian@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/Documentation/perf-stat.txt4
-rw-r--r--tools/perf/builtin-stat.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/Documentation/perf-stat.txt b/tools/perf/Documentation/perf-stat.txt
index 23e587ad549e..46027e1aedb7 100644
--- a/tools/perf/Documentation/perf-stat.txt
+++ b/tools/perf/Documentation/perf-stat.txt
@@ -119,10 +119,10 @@ perf stat --repeat 10 --null --sync --pre 'make -s O=defconfig-build/clean' -- m
119 Print count deltas every N milliseconds (minimum: 100ms) 119 Print count deltas every N milliseconds (minimum: 100ms)
120 example: perf stat -I 1000 -e cycles -a sleep 5 120 example: perf stat -I 1000 -e cycles -a sleep 5
121 121
122--aggr-socket:: 122--per-socket::
123Aggregate counts per processor socket for system-wide mode measurements. This 123Aggregate counts per processor socket for system-wide mode measurements. This
124is a useful mode to detect imbalance between sockets. To enable this mode, 124is a useful mode to detect imbalance between sockets. To enable this mode,
125use --aggr-socket in addition to -a. (system-wide). The output includes the 125use --per-socket in addition to -a. (system-wide). The output includes the
126socket number and the number of online processors on that socket. This is 126socket number and the number of online processors on that socket. This is
127useful to gauge the amount of aggregation. 127useful to gauge the amount of aggregation.
128 128
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index ded34fc4df4f..6f6ea931ab76 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -1370,7 +1370,7 @@ int cmd_stat(int argc, const char **argv, const char *prefix __maybe_unused)
1370 "command to run after to the measured command"), 1370 "command to run after to the measured command"),
1371 OPT_UINTEGER('I', "interval-print", &interval, 1371 OPT_UINTEGER('I', "interval-print", &interval,
1372 "print counts at regular interval in ms (>= 100)"), 1372 "print counts at regular interval in ms (>= 100)"),
1373 OPT_SET_UINT(0, "aggr-socket", &aggr_mode, 1373 OPT_SET_UINT(0, "per-socket", &aggr_mode,
1374 "aggregate counts per processor socket", AGGR_SOCKET), 1374 "aggregate counts per processor socket", AGGR_SOCKET),
1375 OPT_END() 1375 OPT_END()
1376 }; 1376 };