Namhyung Kim
a1f3d56761
perf stat: Use cpu-clock event for cpu targets
Currently 'perf stat' always counts task-clock event by default. But
it's somewhat confusing for system-wide targets (especially with 'sleep
N' as the 'sleep' task just sleeps and doesn't use cputime). Changing
to cpu-clock event instead for that case makes more sense IMHO.
Before:
# perf stat -a sleep 0.1
Performance counter stats for 'system wide':
403.038603 task-clock (msec) # 4.001 CPUs utilized
150 context-switches # 0.372 K/sec
7 cpu-migrations # 0.017 K/sec
71 page-faults # 0.176 K/sec
23,705,169 cycles # 0.059 GHz
15,888,166 instructions # 0.67 insn per cycle
3,326,078 branches # 8.253 M/sec
87,643 branch-misses # 2.64% of all branches
0.100737009 seconds time elapsed
#
After:
# perf stat -a sleep 0.1
Performance counter stats for 'system wide':
404.271182 cpu-clock (msec) # 4.000 CPUs utilized
143 context-switches # 0.354 K/sec
13 cpu-migrations # 0.032 K/sec
73 page-faults # 0.181 K/sec
22,119,220 cycles # 0.055 GHz
13,622,065 instructions # 0.62 insn per cycle
2,918,769 branches # 7.220 M/sec
85,033 branch-misses # 2.91% of all branches
0.101073089 seconds time elapsed
#
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1463119263-5569-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-05-16 23:11:47 -03:00
..
2016-05-05 21:04:03 -03:00
2016-04-26 13:28:40 -03:00
2016-04-08 09:58:14 -03:00
2016-04-28 09:58:59 -03:00
2016-04-01 18:42:55 -03:00
2015-10-07 19:41:50 -03:00
2016-05-06 13:00:55 -03:00
2016-05-09 18:11:22 -03:00
2016-05-11 13:06:00 -03:00
2016-05-05 21:04:02 -03:00
2016-05-16 23:11:46 -03:00
2015-08-17 11:11:36 -03:00
2016-01-12 12:42:07 -03:00
2016-03-23 12:03:08 -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-04-14 09:15:47 -03:00
2015-12-17 14:27:14 -03:00
2016-05-05 21:03:58 -03:00
2016-01-08 14:23:02 -03:00
2016-05-10 11:56:14 -03:00
2016-03-31 10:52:24 -03:00
2016-04-14 14:48:07 -03:00
2016-04-11 22:18:20 -03:00
2015-12-17 14:27:14 -03:00
2015-12-17 14:27:14 -03:00
2016-03-30 11:14:07 -03:00
2015-12-17 14:27:14 -03:00
2016-04-28 09:58:59 -03:00
2016-05-05 21:03:59 -03:00
2016-04-13 10:11:52 -03:00
2016-04-27 10:29:07 -03:00
2016-05-16 23:11:47 -03:00
2016-03-23 12:03:08 -03:00
2016-05-05 21:04:01 -03:00
2016-05-11 13:06:00 -03:00
2015-12-09 13:42:03 -03:00
2016-03-23 15:06:35 -03:00
2016-01-08 12:46:17 -03:00
2014-03-18 18:17:06 -03:00
2016-02-04 15:57:00 -03:00
2016-04-08 09:58:14 -03:00
2016-03-24 12:28:57 -03:00
2012-09-17 13:10:42 -03:00
2015-03-19 13:53:27 -03:00
2014-10-29 10:32:48 -02:00
2015-05-08 16:05:08 -03:00
2015-08-06 16:48:27 -03:00
2016-05-10 11:56:52 -03:00
2016-04-18 12:26:27 -03:00