HelenOS sources
atomic_time_increment 122 kernel/generic/src/interrupt/interrupt.c atomic_time_increment(&CPU->idle_cycles, now - CPU_LOCAL->last_cycle);
atomic_time_increment 495 kernel/generic/src/proc/scheduler.c atomic_time_increment(&THREAD->kcycles, get_cycle() - THREAD->last_cycle);
atomic_time_increment 796 kernel/generic/src/proc/thread.c atomic_time_increment(&THREAD->ucycles, time - THREAD->last_cycle);
atomic_time_increment 798 kernel/generic/src/proc/thread.c atomic_time_increment(&THREAD->kcycles, time - THREAD->last_cycle);
atomic_time_increment 127 kernel/generic/src/time/clock.c atomic_time_increment(&CPU->busy_cycles, now - CPU_LOCAL->last_cycle);
HelenOS homepage, sources at GitHub