]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter tools: Small frequency related fixes
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 10 Jun 2009 13:03:06 +0000 (15:03 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Jun 2009 14:55:26 +0000 (16:55 +0200)
commita97e3c4f4e016f89a203c6cb4f69ced957fcf7d0
treea08bc1c29e3ed1fd04c354e30019f243e82a4d32
parent9ca5c12841b8d507e97a3abbf8144ac6a7578baf
perf_counter tools: Small frequency related fixes

Create the counter in a disabled state and only enable it after we
mmap() the buffer, this allows us to see the first few samples (and
observe the frequency ramp).

Furthermore, print the period in the verbose report.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/builtin-report.c