• Home
  • Raw
  • Download

Lines Matching refs:cputime

126 void account_user_time(struct task_struct *p, u64 cputime)  in account_user_time()  argument
131 p->utime += cputime; in account_user_time()
132 account_group_user_time(p, cputime); in account_user_time()
137 task_group_account_field(p, index, cputime); in account_user_time()
143 cpufreq_acct_update_power(p, cputime); in account_user_time()
151 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument
156 p->utime += cputime; in account_guest_time()
157 account_group_user_time(p, cputime); in account_guest_time()
158 p->gtime += cputime; in account_guest_time()
162 task_group_account_field(p, CPUTIME_NICE, cputime); in account_guest_time()
163 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time()
165 task_group_account_field(p, CPUTIME_USER, cputime); in account_guest_time()
166 cpustat[CPUTIME_GUEST] += cputime; in account_guest_time()
177 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
180 p->stime += cputime; in account_system_index_time()
181 account_group_system_time(p, cputime); in account_system_index_time()
184 task_group_account_field(p, index, cputime); in account_system_index_time()
190 cpufreq_acct_update_power(p, cputime); in account_system_index_time()
199 void account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime) in account_system_time() argument
204 account_guest_time(p, cputime); in account_system_time()
215 account_system_index_time(p, cputime, index); in account_system_time()
222 void account_steal_time(u64 cputime) in account_steal_time() argument
226 cpustat[CPUTIME_STEAL] += cputime; in account_steal_time()
233 void account_idle_time(u64 cputime) in account_idle_time() argument
239 cpustat[CPUTIME_IOWAIT] += cputime; in account_idle_time()
241 cpustat[CPUTIME_IDLE] += cputime; in account_idle_time()
390 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick() local
400 if (other >= cputime) in irqtime_account_process_tick()
403 cputime -= other; in irqtime_account_process_tick()
411 account_system_index_time(p, cputime, CPUTIME_SOFTIRQ); in irqtime_account_process_tick()
413 account_user_time(p, cputime); in irqtime_account_process_tick()
415 account_idle_time(cputime); in irqtime_account_process_tick()
417 account_guest_time(p, cputime); in irqtime_account_process_tick()
419 account_system_index_time(p, cputime, CPUTIME_SYSTEM); in irqtime_account_process_tick()
484 struct task_cputime cputime; in thread_group_cputime_adjusted() local
486 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
488 *ut = cputime.utime; in thread_group_cputime_adjusted()
489 *st = cputime.stime; in thread_group_cputime_adjusted()
502 u64 cputime, steal; in account_process_tick() local
518 cputime = TICK_NSEC * ticks; in account_process_tick()
521 if (steal >= cputime) in account_process_tick()
524 cputime -= steal; in account_process_tick()
527 account_user_time(p, cputime); in account_process_tick()
529 account_system_time(p, HARDIRQ_OFFSET, cputime); in account_process_tick()
531 account_idle_time(cputime); in account_process_tick()
540 u64 cputime, steal; in account_idle_ticks() local
547 cputime = ticks * TICK_NSEC; in account_idle_ticks()
550 if (steal >= cputime) in account_idle_ticks()
553 cputime -= steal; in account_idle_ticks()
554 account_idle_time(cputime); in account_idle_ticks()
651 struct task_cputime cputime = { in task_cputime_adjusted() local
655 if (task_cputime(p, &cputime.utime, &cputime.stime)) in task_cputime_adjusted()
656 cputime.sum_exec_runtime = task_sched_runtime(p); in task_cputime_adjusted()
657 cputime_adjust(&cputime, &p->prev_cputime, ut, st); in task_cputime_adjusted()
663 struct task_cputime cputime; in thread_group_cputime_adjusted() local
665 thread_group_cputime(p, &cputime); in thread_group_cputime_adjusted()
666 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()