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-01-08 12:35:46 -03:00
2015-09-28 16:45:26 -03:00
2016-02-25 12:54:20 -03:00
2010-05-18 23:03:35 -03:00
2013-12-27 15:17:00 -03:00
2015-12-07 18:13:00 -03:00
2015-10-05 16:15:38 -03:00
2016-01-29 17:14:30 -03:00
2016-01-29 17:14:30 -03:00
2016-02-22 14:37:21 -03:00
2016-02-22 12:48:50 -03:00
2015-11-18 17:51:04 -03:00
2015-11-18 17:51:04 -03:00
2016-02-23 12:11:06 -03:00
2016-02-12 10:54:47 -03:00
2016-02-12 10:54:47 -03:00
2016-02-12 10:54:46 -03:00
2016-02-19 19:15:01 -03:00
2016-01-08 12:37:51 -03:00
2015-12-17 14:27:14 -03:00
2015-05-15 16:12:20 -03:00
2015-06-25 12:28:35 -03:00
2015-08-05 16:56:16 -03:00
2016-02-26 19:49:16 -03:00
2015-08-05 16:44:02 -03:00
2015-05-27 12:21:43 -03:00
2014-10-29 10:32:49 -02:00
2016-02-12 10:54:46 -03:00
2015-08-08 14:16:49 -03:00
2015-08-08 14:16:49 -03:00
2016-01-26 16:08:36 -03:00
2016-01-26 16:08:36 -03:00
2016-02-24 20:21:12 -03:00
2016-03-03 11:10:34 -03:00
2015-04-02 13:18:52 -03:00
2014-08-15 10:58:35 -03:00
2013-12-02 09:22:46 -03:00
2015-05-29 12:43:39 -03:00
2015-04-02 13:18:43 -03:00
2016-02-24 11:38:01 -03:00
2016-02-16 17:12:59 -03:00
2016-02-05 09:46:45 -03:00
2016-02-05 09:46:45 -03:00
2016-01-26 11:52:43 -03:00
2015-11-13 11:14:36 -03:00
2015-08-13 14:51:26 -03:00
2015-05-14 10:05:09 -03:00
2016-02-16 17:13:00 -03:00
2016-02-16 17:13:00 -03:00
2016-02-05 09:39:56 -03:00
2015-12-17 15:13:38 -03:00
2016-02-26 19:50:01 -03:00
2016-02-22 12:30:50 -03:00
2016-02-22 14:37:21 -03:00
2016-02-22 14:37:21 -03:00
2014-10-29 10:32:48 -02:00
2016-02-05 12:33:09 -03:00
2016-02-05 12:33:09 -03:00
2016-02-05 12:33:09 -03:00
2016-01-08 12:46:17 -03:00
2016-02-16 17:13:00 -03:00
2016-02-16 17:13:00 -03:00
2016-02-26 19:49:16 -03:00
2015-12-14 12:30:37 -03:00
2016-02-26 19:38:48 -03:00
2016-02-26 18:36:11 -03:00
2015-09-02 17:46:26 -03:00
2015-08-21 11:34:10 -03:00
2016-02-02 12:51:11 -03:00
2015-08-24 17:46:43 -03:00
2013-10-14 10:28:48 -03:00
2013-10-14 10:28:48 -03:00
2016-02-05 09:46:45 -03:00
2016-02-05 12:33:09 -03:00
2016-02-05 09:46:45 -03:00
2016-01-29 17:49:54 -03:00
2015-11-06 15:57:18 -03:00
2015-08-07 10:57:24 -03:00
2015-03-21 14:53:40 -03:00
2015-12-14 12:08:55 -03:00
2016-01-26 11:52:51 -03:00
2015-12-09 13:42:00 -03:00
2015-09-30 18:34:25 -03:00
2016-02-24 10:32:11 -03:00
2016-02-24 10:32:11 -03:00
2015-08-24 17:16:22 -03:00
2015-03-31 17:52:32 -03:00
2015-12-17 14:27:14 -03:00
2015-05-27 21:02:17 -03:00
2016-02-22 13:02:44 -03:00
2016-02-22 13:02:44 -03:00
2016-02-22 14:37:21 -03:00
2016-02-25 10:56:21 -03:00
2015-12-17 14:27:14 -03:00
2015-08-31 18:01:33 -03:00
2015-12-16 16:09:39 -03:00
2015-09-30 18:34:27 -03:00
2015-09-30 18:34:27 -03:00
2013-11-07 10:40:47 -03:00
2016-03-03 11:04:54 -03:00
2015-08-06 16:49:01 -03:00
2012-03-16 14:29:35 -03:00
2013-02-14 16:12:34 -03:00
2015-11-18 17:51:04 -03:00
2015-09-15 09:48:32 -03:00
2015-11-11 18:41:32 -03:00
2015-09-04 12:43:44 -03:00
2016-02-02 13:30:16 -03:00
2016-02-02 13:30:16 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2016-01-08 12:35:46 -03:00
2015-10-07 19:41:50 -03:00
2010-05-18 23:03:35 -03:00
2010-05-18 23:03:35 -03:00
2013-10-14 10:28:48 -03:00
2013-10-14 10:28:48 -03:00
2015-08-17 11:08:37 -03:00
2016-01-15 16:31:58 -03:00
2015-12-10 16:28:58 -03:00
2016-02-29 11:18:25 -03:00
2016-02-26 19:38:48 -03:00
2016-02-26 11:20:36 -03:00
2015-09-02 16:30:46 -03:00
2016-03-03 11:10:36 -03:00
2016-02-04 08:57:44 +01:00
2016-02-16 17:13:00 -03:00
2016-02-23 16:21:04 -03:00
2016-02-23 16:21:04 -03:00
2015-05-04 12:43:54 -03:00
2015-05-04 12:43:54 -03:00
2015-11-18 17:51:02 -03:00
2016-01-12 12:42:07 -03:00
2016-01-12 12:42:07 -03:00
2015-06-25 15:15:50 -03:00
2014-07-10 00:22:54 +02:00
2016-02-05 09:46:45 -03:00
2015-10-28 10:02:00 -03:00
2016-02-12 10:54:47 -03:00
2016-02-24 13:35:44 -03:00
2015-03-24 12:08:30 -03:00
2013-12-04 13:46:37 -03:00
2015-12-09 13:42:02 -03:00
2015-12-09 13:42:02 -03:00
2015-12-17 14:38:16 -03:00
2015-12-17 14:38:16 -03:00
2015-06-19 16:03:33 -03:00
2015-06-19 16:03:33 -03:00
2015-12-14 12:08:55 -03:00
2015-05-18 10:17:33 -03:00
2015-12-17 15:10:16 -03:00
2013-12-19 14:43:45 -03:00
2014-05-01 21:22:39 +02:00
2015-09-04 12:00:45 -03:00
2015-12-11 11:52:24 -08:00
2015-07-23 22:51:11 -03:00
2015-04-02 13:18:41 -03:00
2016-02-16 17:12:56 -03:00
2016-01-06 20:11:15 -03:00
2014-07-23 11:48:11 -03:00
2014-07-23 11:48:11 -03:00
2016-01-08 14:16:57 -03:00
2015-11-23 18:31:13 -03:00
2016-01-08 14:16:34 -03:00
2014-10-29 10:32:46 -02:00
2015-10-19 14:58:10 -03:00
2016-02-24 11:38:01 -03:00
2016-02-24 20:21:12 -03:00
2013-12-27 17:08:19 -03:00
2014-05-01 21:22:39 +02:00
2015-07-07 11:05:08 -03:00
2015-05-29 12:43:44 -03:00
2012-09-11 12:19:15 -03:00
2015-06-16 10:34:39 -03:00
2015-06-16 10:34:39 -03:00
2014-11-05 10:11:26 -03:00