summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2016-05-13 15:01:02 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-05-16 23:11:46 -0300
commitdaf4f4786e8af371048e72cb37ac05190e89198a (patch)
tree36ceb814c905b39a50ddb3032d5837ca0eb484bf /Documentation
parentb0404be8d6186f9f3c23e2b5ff247e667be90652 (diff)
perf stat: Update runtime using cpu-clock event
Currently only the task-clock event updates the runtime_nsec so it cannot show the metric when using cpu-clock events. However cpu clock works basically same as task-clock, so no need to not update the runtime IMHO. Before: # perf stat -a -e cpu-clock,context-switches,page-faults,cycles sleep 0.1 Performance counter stats for 'system wide': 1217.759506 cpu-clock (msec) 93 context-switches 61 page-faults 18,958,022 cycles 0.101393794 seconds time elapsed After: Performance counter stats for 'system wide': 1220.471884 cpu-clock (msec) # 12.013 CPUs utilized 118 context-switches # 0.097 K/sec 59 page-faults # 0.048 K/sec 17,941,247 cycles # 0.015 GHz 0.101594777 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-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions