perf counters: implement PERF_COUNT_CPU_CLOCK
authorIngo Molnar <mingo@elte.hu>
Thu, 11 Dec 2008 12:21:10 +0000 (13:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Dec 2008 14:45:52 +0000 (15:45 +0100)
commit5c92d12411dfe5f0f3d1b1c1e2f756245e6f7249
tree498b78f995d917aa513cf15ada480327224c0277
parent621a01eac89b5e2f81a4cf576568b31f40a02724
perf counters: implement PERF_COUNT_CPU_CLOCK

Impact: add new perf-counter type

The 'CPU clock' counter counts the amount of CPU clock time that is
elapsing, in nanoseconds. (regardless of how much of it the task is
spending on a CPU executing)

This counter type is a Linux kernel based abstraction, it is available
even if the hardware does not support native hardware performance counters.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c
include/linux/perf_counter.h
kernel/perf_counter.c