• Ingo Molnar's avatar
    perf counters: implement PERF_COUNT_TASK_CLOCK · bae43c99
    Ingo Molnar authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    bae43c99
perf_counter.c 27.6 KB