Lines Matching refs:cputime
116 void account_user_time(struct task_struct *p, u64 cputime) in account_user_time() argument
121 p->utime += cputime; in account_user_time()
122 account_group_user_time(p, cputime); in account_user_time()
127 task_group_account_field(p, index, cputime); in account_user_time()
138 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument
143 p->utime += cputime; in account_guest_time()
144 account_group_user_time(p, cputime); in account_guest_time()
145 p->gtime += cputime; in account_guest_time()
149 cpustat[CPUTIME_NICE] += cputime; in account_guest_time()
150 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
152 cpustat[CPUTIME_USER] += cputime; in account_guest_time()
153 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
164 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
167 p->stime += cputime; in account_system_index_time()
168 account_group_system_time(p, cputime); in account_system_index_time()
171 task_group_account_field(p, index, cputime); in account_system_index_time()
183 void account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime) in account_system_time() argument
188 account_guest_time(p, cputime); in account_system_time()
199 account_system_index_time(p, cputime, index); in account_system_time()
206 void account_steal_time(u64 cputime) in account_steal_time() argument
210 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
217 void account_idle_time(u64 cputime) in account_idle_time() argument
223 cpustat[CPUTIME_IOWAIT] += cputime; in account_idle_time()
225 cpustat[CPUTIME_IDLE] += cputime; in account_idle_time()
359 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick() local
369 if (other >= cputime) in irqtime_account_process_tick()
372 cputime -= other; in irqtime_account_process_tick()
380 account_system_index_time(p, cputime, CPUTIME_SOFTIRQ); in irqtime_account_process_tick()
382 account_user_time(p, cputime); in irqtime_account_process_tick()
384 account_idle_time(cputime); in irqtime_account_process_tick()
386 account_guest_time(p, cputime); in irqtime_account_process_tick()
388 account_system_index_time(p, cputime, CPUTIME_SYSTEM); in irqtime_account_process_tick()
459 struct task_cputime cputime; in thread_group_cputime_adjusted() local
461 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
463 *ut = cputime.utime; in thread_group_cputime_adjusted()
464 *st = cputime.stime; in thread_group_cputime_adjusted()
476 u64 cputime, steal; in account_process_tick() local
487 cputime = TICK_NSEC; in account_process_tick()
490 if (steal >= cputime) in account_process_tick()
493 cputime -= steal; in account_process_tick()
496 account_user_time(p, cputime); in account_process_tick()
498 account_system_time(p, HARDIRQ_OFFSET, cputime); in account_process_tick()
500 account_idle_time(cputime); in account_process_tick()
509 u64 cputime, steal; in account_idle_ticks() local
516 cputime = ticks * TICK_NSEC; in account_idle_ticks()
519 if (steal >= cputime) in account_idle_ticks()
522 cputime -= steal; in account_idle_ticks()
523 account_idle_time(cputime); in account_idle_ticks()
664 struct task_cputime cputime = { in task_cputime_adjusted() local
668 task_cputime(p, &cputime.utime, &cputime.stime); in task_cputime_adjusted()
669 cputime_adjust(&cputime, &p->prev_cputime, ut, st); in task_cputime_adjusted()
675 struct task_cputime cputime; in thread_group_cputime_adjusted() local
677 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
678 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()