Lines Matching refs:cputime
117 void account_user_time(struct task_struct *p, u64 cputime) in account_user_time() argument
122 p->utime += cputime; in account_user_time()
123 account_group_user_time(p, cputime); in account_user_time()
128 task_group_account_field(p, index, cputime); in account_user_time()
139 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument
144 p->utime += cputime; in account_guest_time()
145 account_group_user_time(p, cputime); in account_guest_time()
146 p->gtime += cputime; in account_guest_time()
150 task_group_account_field(p, CPUTIME_NICE, cputime); in account_guest_time()
151 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
153 task_group_account_field(p, CPUTIME_USER, cputime); in account_guest_time()
154 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
165 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
168 p->stime += cputime; in account_system_index_time()
169 account_group_system_time(p, cputime); in account_system_index_time()
172 task_group_account_field(p, index, cputime); in account_system_index_time()
184 void account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime) in account_system_time() argument
189 account_guest_time(p, cputime); in account_system_time()
200 account_system_index_time(p, cputime, index); in account_system_time()
207 void account_steal_time(u64 cputime) in account_steal_time() argument
211 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
218 void account_idle_time(u64 cputime) in account_idle_time() argument
224 cpustat[CPUTIME_IOWAIT] += cputime; in account_idle_time()
226 cpustat[CPUTIME_IDLE] += cputime; in account_idle_time()
375 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick() local
385 if (other >= cputime) in irqtime_account_process_tick()
388 cputime -= other; in irqtime_account_process_tick()
396 account_system_index_time(p, cputime, CPUTIME_SOFTIRQ); in irqtime_account_process_tick()
398 account_user_time(p, cputime); in irqtime_account_process_tick()
400 account_idle_time(cputime); in irqtime_account_process_tick()
402 account_guest_time(p, cputime); in irqtime_account_process_tick()
404 account_system_index_time(p, cputime, CPUTIME_SYSTEM); in irqtime_account_process_tick()
468 struct task_cputime cputime; in thread_group_cputime_adjusted() local
470 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
472 *ut = cputime.utime; in thread_group_cputime_adjusted()
473 *st = cputime.stime; in thread_group_cputime_adjusted()
485 u64 cputime, steal; in account_process_tick() local
495 cputime = TICK_NSEC; in account_process_tick()
498 if (steal >= cputime) in account_process_tick()
501 cputime -= steal; in account_process_tick()
504 account_user_time(p, cputime); in account_process_tick()
506 account_system_time(p, HARDIRQ_OFFSET, cputime); in account_process_tick()
508 account_idle_time(cputime); in account_process_tick()
517 u64 cputime, steal; in account_idle_ticks() local
524 cputime = ticks * TICK_NSEC; in account_idle_ticks()
527 if (steal >= cputime) in account_idle_ticks()
530 cputime -= steal; in account_idle_ticks()
531 account_idle_time(cputime); in account_idle_ticks()
628 struct task_cputime cputime = { in task_cputime_adjusted() local
632 if (task_cputime(p, &cputime.utime, &cputime.stime)) in task_cputime_adjusted()
633 cputime.sum_exec_runtime = task_sched_runtime(p); in task_cputime_adjusted()
634 cputime_adjust(&cputime, &p->prev_cputime, ut, st); in task_cputime_adjusted()
640 struct task_cputime cputime; in thread_group_cputime_adjusted() local
642 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
643 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()