Andi Kleen
44d49a6002
perf stat: Support metrics in --per-core/socket mode
Enable metrics printing in --per-core / --per-socket mode. We need to
save the shadow metrics in a unique place. Always use the first CPU in
the aggregation. Then use the same CPU to retrieve the shadow value
later.
Example output:
% perf stat --per-core -a ./BC1s
Performance counter stats for 'system wide':
S0-C0 2 2966.020381 task-clock (msec) # 2.004 CPUs utilized (100.00%)
S0-C0 2 49 context-switches # 0.017 K/sec (100.00%)
S0-C0 2 4 cpu-migrations # 0.001 K/sec (100.00%)
S0-C0 2 467 page-faults # 0.157 K/sec
S0-C0 2 4,599,061,773 cycles # 1.551 GHz (100.00%)
S0-C0 2 9,755,886,883 instructions # 2.12 insn per cycle (100.00%)
S0-C0 2 1,906,272,125 branches # 642.704 M/sec (100.00%)
S0-C0 2 81,180,867 branch-misses # 4.26% of all branches
S0-C1 2 2965.995373 task-clock (msec) # 2.003 CPUs utilized (100.00%)
S0-C1 2 62 context-switches # 0.021 K/sec (100.00%)
S0-C1 2 8 cpu-migrations # 0.003 K/sec (100.00%)
S0-C1 2 281 page-faults # 0.095 K/sec
S0-C1 2 6,347,290 cycles # 0.002 GHz (100.00%)
S0-C1 2 4,654,156 instructions # 0.73 insn per cycle (100.00%)
S0-C1 2 947,121 branches # 0.319 M/sec (100.00%)
S0-C1 2 37,322 branch-misses # 3.94% of all branches
1.480409747 seconds time elapsed
v2: Rebase to older patches
v3: Document shadow cpus. Fix aggr_get_id argument. Fix -A shadows (Jiri)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1456785386-19481-4-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-03-03 11:10:36 -03:00
..
2016-02-12 17:09:17 -03:00
2015-12-17 14:27:14 -03:00
2016-02-05 09:46:45 -03:00
2016-02-24 20:21:15 -03:00
2016-02-25 10:43:28 -03:00
2015-10-07 19:41:50 -03:00
2016-02-12 11:30:27 -03:00
2016-02-26 19:49:16 -03:00
2015-09-04 13:22:06 -03:00
2016-02-26 18:37:06 -03:00
2016-03-03 11:10:36 -03:00
2015-08-17 11:11:36 -03:00
2016-01-12 12:42:07 -03:00
2016-02-03 11:13:11 -03:00
2015-12-17 14:27:14 -03:00
2016-01-29 17:30:06 -03:00
2015-12-17 14:27:14 -03:00
2016-02-12 10:54:46 -03:00
2015-12-17 14:27:14 -03:00
2016-02-26 19:49:16 -03:00
2016-01-08 14:23:02 -03:00
2016-02-26 19:49:16 -03:00
2016-02-05 09:46:45 -03:00
2016-02-26 19:49:16 -03:00
2016-01-29 17:49:54 -03:00
2015-12-17 14:27:14 -03:00
2015-12-17 14:27:14 -03:00
2016-02-24 10:11:52 -03:00
2015-12-17 14:27:14 -03:00
2016-03-03 11:10:36 -03:00
2016-02-26 19:49:16 -03:00
2015-12-17 14:27:14 -03:00
2016-02-25 16:14:33 -03:00
2016-03-03 11:10:36 -03:00
2015-12-17 14:27:14 -03:00
2016-02-26 19:49:16 -03:00
2016-02-29 11:34:28 -03:00
2015-12-09 13:42:03 -03:00
2015-11-23 18:31:24 -03:00
2016-01-08 12:46:17 -03:00
2016-02-04 15:57:00 -03:00
2016-02-12 11:30:20 -03:00
2016-01-11 12:09:25 -03:00
2015-08-06 16:48:27 -03:00
2016-02-26 19:49:16 -03:00
2016-02-18 10:48:44 -03:00