]> git.baikalelectronics.ru Git - kernel.git/commit
perf events: Add PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event
authorStephane Eranian <eranian@google.com>
Sat, 10 Dec 2011 23:28:52 +0000 (00:28 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 21 Dec 2011 09:26:37 +0000 (10:26 +0100)
commitd5b29fe7e783f76e2bcc2749e4f0aa8eddbb8dae
tree6c466225f24cb49500be77c8ac58e6a404357b11
parente28a1707988ef20030c1c9f6df9e295b6e3e14ad
perf events: Add PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event

This event counts the number of reference core cpu cycles.
Reference means that the event increments at a constant rate which
is not subject to core CPU frequency adjustments. The event may
not count when the processor is in halted (low power) state.
As such, it may not be equivalent to wall clock time. However,
when the processor is not halted state, the event keeps
a constant correlation with wall clock time.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1323559734-3488-3-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h