Lines Matching refs:cputime

118 void account_user_time(struct task_struct *p, u64 cputime)  in account_user_time()  argument
123 p->utime += cputime; in account_user_time()
124 account_group_user_time(p, cputime); in account_user_time()
129 task_group_account_field(p, index, cputime); in account_user_time()
140 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument
145 p->utime += cputime; in account_guest_time()
146 account_group_user_time(p, cputime); in account_guest_time()
147 p->gtime += cputime; in account_guest_time()
151 cpustat[CPUTIME_NICE] += cputime; in account_guest_time()
152 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
154 cpustat[CPUTIME_USER] += cputime; in account_guest_time()
155 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
166 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
169 p->stime += cputime; in account_system_index_time()
170 account_group_system_time(p, cputime); in account_system_index_time()
173 task_group_account_field(p, index, cputime); in account_system_index_time()
185 void account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime) in account_system_time() argument
190 account_guest_time(p, cputime); in account_system_time()
201 account_system_index_time(p, cputime, index); in account_system_time()
208 void account_steal_time(u64 cputime) in account_steal_time() argument
212 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
219 void account_idle_time(u64 cputime) in account_idle_time() argument
225 cpustat[CPUTIME_IOWAIT] += cputime; in account_idle_time()
227 cpustat[CPUTIME_IDLE] += cputime; in account_idle_time()
361 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick() local
371 if (other >= cputime) in irqtime_account_process_tick()
374 cputime -= other; in irqtime_account_process_tick()
382 account_system_index_time(p, cputime, CPUTIME_SOFTIRQ); in irqtime_account_process_tick()
384 account_user_time(p, cputime); in irqtime_account_process_tick()
386 account_idle_time(cputime); in irqtime_account_process_tick()
388 account_guest_time(p, cputime); in irqtime_account_process_tick()
390 account_system_index_time(p, cputime, CPUTIME_SYSTEM); in irqtime_account_process_tick()
454 struct task_cputime cputime; in thread_group_cputime_adjusted() local
456 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
458 *ut = cputime.utime; in thread_group_cputime_adjusted()
459 *st = cputime.stime; in thread_group_cputime_adjusted()
471 u64 cputime, steal; in account_process_tick() local
481 cputime = TICK_NSEC; in account_process_tick()
484 if (steal >= cputime) in account_process_tick()
487 cputime -= steal; in account_process_tick()
490 account_user_time(p, cputime); in account_process_tick()
492 account_system_time(p, HARDIRQ_OFFSET, cputime); in account_process_tick()
494 account_idle_time(cputime); in account_process_tick()
503 u64 cputime, steal; in account_idle_ticks() local
510 cputime = ticks * TICK_NSEC; in account_idle_ticks()
513 if (steal >= cputime) in account_idle_ticks()
516 cputime -= steal; in account_idle_ticks()
517 account_idle_time(cputime); in account_idle_ticks()
614 struct task_cputime cputime = { in task_cputime_adjusted() local
618 if (task_cputime(p, &cputime.utime, &cputime.stime)) in task_cputime_adjusted()
619 cputime.sum_exec_runtime = task_sched_runtime(p); in task_cputime_adjusted()
620 cputime_adjust(&cputime, &p->prev_cputime, ut, st); in task_cputime_adjusted()
626 struct task_cputime cputime; in thread_group_cputime_adjusted() local
628 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
629 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()