Home
last modified time | relevance | path

Searched refs:cputime (Results 1 – 7 of 7) sorted by relevance

/kernel/sched/
Dcputime.c152 void account_user_time(struct task_struct *p, cputime_t cputime, in account_user_time() argument
158 p->utime += cputime; in account_user_time()
160 account_group_user_time(p, cputime); in account_user_time()
165 task_group_account_field(p, index, (__force u64) cputime); in account_user_time()
171 cpufreq_acct_update_power(p, cputime); in account_user_time()
180 static void account_guest_time(struct task_struct *p, cputime_t cputime, in account_guest_time() argument
186 p->utime += cputime; in account_guest_time()
188 account_group_user_time(p, cputime); in account_guest_time()
189 p->gtime += cputime; in account_guest_time()
193 cpustat[CPUTIME_NICE] += (__force u64) cputime; in account_guest_time()
[all …]
Dstats.h212 cputime_t cputime) in account_group_user_time() argument
219 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
233 cputime_t cputime) in account_group_system_time() argument
240 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
Dcpuacct.h3 extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
8 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument
Dcpuacct.c235 void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument
248 *cpuusage += cputime; in cpuacct_charge()
DMakefile18 obj-y += core.o loadavg.o clock.o cputime.o
/kernel/time/
Dposix-cpu-timers.c24 cputime_t cputime = secs_to_cputime(rlim_new); in update_rlimit_cpu() local
27 set_process_cpu_timer(task, CPUCLOCK_PROF, &cputime, NULL); in update_rlimit_cpu()
119 static inline int task_cputime_zero(const struct task_cputime *cputime) in task_cputime_zero() argument
121 if (!cputime->utime && !cputime->stime && !cputime->sum_exec_runtime) in task_cputime_zero()
203 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument
207 curr_cputime = atomic64_read(cputime); in __update_gt_cputime()
209 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
266 struct task_cputime cputime; in cpu_clock_sample_group() local
272 thread_group_cputime(p, &cputime); in cpu_clock_sample_group()
273 *sample = cputime_to_expires(cputime.utime + cputime.stime); in cpu_clock_sample_group()
[all …]
Ditimer.c56 struct task_cputime cputime; in get_cpu_itimer() local
59 thread_group_cputimer(tsk, &cputime); in get_cpu_itimer()
61 t = cputime.utime + cputime.stime; in get_cpu_itimer()
64 t = cputime.utime; in get_cpu_itimer()