perf counters: implement PERF_COUNT_TASK_CLOCK
authorIngo Molnar <mingo@elte.hu>
Thu, 11 Dec 2008 13:03:20 +0000 (14:03 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Dec 2008 14:45:54 +0000 (15:45 +0100)
Impact: add new perf-counter type

The 'task clock' counter counts the amount of time a task is executing,
in nanoseconds. It stops ticking when a task is scheduled out either due
to it blocking, sleeping or it being preempted.

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>

No differences found