Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/sched/
Dcputime.c116 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()
[all …]
DMakefile19 obj-y += core.o loadavg.o clock.o cputime.o
Dcpuacct.c338 void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument
350 this_cpu_ptr(ca->cpuusage)->usages[index] += cputime; in cpuacct_charge()
/Linux-v4.19/kernel/cgroup/
Drstat.c307 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_accumulate()
308 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_accumulate()
309 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_accumulate()
316 struct task_cputime *last_cputime = &rstatc->last_bstat.cputime; in cgroup_base_stat_flush()
317 struct task_cputime cputime; in cgroup_base_stat_flush() local
324 cputime = rstatc->bstat.cputime; in cgroup_base_stat_flush()
328 delta.cputime.utime = cputime.utime - last_cputime->utime; in cgroup_base_stat_flush()
329 delta.cputime.stime = cputime.stime - last_cputime->stime; in cgroup_base_stat_flush()
330 delta.cputime.sum_exec_runtime = cputime.sum_exec_runtime - in cgroup_base_stat_flush()
332 *last_cputime = cputime; in cgroup_base_stat_flush()
[all …]
/Linux-v4.19/arch/s390/include/asm/
Dcputime.h24 static inline u64 cputime_to_usecs(const u64 cputime) in cputime_to_usecs() argument
26 return cputime >> 12; in cputime_to_usecs()
32 #define cputime_to_nsecs(cputime) tod_to_ns(cputime) argument
/Linux-v4.19/kernel/time/
Dposix-cpu-timers.c101 static inline int task_cputime_zero(const struct task_cputime *cputime) in task_cputime_zero() argument
103 if (!cputime->utime && !cputime->stime && !cputime->sum_exec_runtime) in task_cputime_zero()
185 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument
189 curr_cputime = atomic64_read(cputime); in __update_gt_cputime()
191 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
248 struct task_cputime cputime; in cpu_clock_sample_group() local
254 thread_group_cputime(p, &cputime); in cpu_clock_sample_group()
255 *sample = cputime.utime + cputime.stime; in cpu_clock_sample_group()
258 thread_group_cputime(p, &cputime); in cpu_clock_sample_group()
259 *sample = cputime.utime; in cpu_clock_sample_group()
[all …]
Ditimer.c60 struct task_cputime cputime; in get_cpu_itimer() local
63 thread_group_cputimer(tsk, &cputime); in get_cpu_itimer()
65 t = cputime.utime + cputime.stime; in get_cpu_itimer()
68 t = cputime.utime; in get_cpu_itimer()
/Linux-v4.19/include/linux/sched/
Dcputime.h126 u64 cputime) in account_group_user_time() argument
133 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
147 u64 cputime) in account_group_system_time() argument
154 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
/Linux-v4.19/arch/s390/kernel/
Dvtime.c114 static void account_system_index_scaled(struct task_struct *p, u64 cputime, in account_system_index_scaled() argument
117 p->stimescaled += cputime_to_nsecs(scale_vtime(cputime)); in account_system_index_scaled()
118 account_system_index_time(p, cputime_to_nsecs(cputime), index); in account_system_index_scaled()
/Linux-v4.19/fs/ocfs2/cluster/
Dheartbeat.c733 u64 cputime; in o2hb_prepare_block() local
743 cputime = ktime_get_real_seconds(); in o2hb_prepare_block()
744 if (!cputime) in o2hb_prepare_block()
745 cputime = 1; in o2hb_prepare_block()
747 hb_block->hb_seq = cpu_to_le64(cputime); in o2hb_prepare_block()
917 u64 cputime; in o2hb_check_slot() local
962 cputime = le64_to_cpu(hb_block->hb_seq); in o2hb_check_slot()
963 if (slot->ds_last_time != cputime) in o2hb_check_slot()
967 slot->ds_last_time = cputime; in o2hb_check_slot()
/Linux-v4.19/arch/nds32/include/asm/
DKbuild13 generic-y += cputime.h
/Linux-v4.19/arch/riscv/include/asm/
DKbuild5 generic-y += cputime.h
/Linux-v4.19/include/linux/
Dcgroup.h737 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
740 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
Dcgroup-defs.h265 struct task_cputime cputime; member
/Linux-v4.19/fs/
Dbinfmt_elf_fdpic.c1359 struct task_cputime cputime; in fill_prstatus() local
1365 thread_group_cputime(p, &cputime); in fill_prstatus()
1366 prstatus->pr_utime = ns_to_timeval(cputime.utime); in fill_prstatus()
1367 prstatus->pr_stime = ns_to_timeval(cputime.stime); in fill_prstatus()
Dbinfmt_elf.c1508 struct task_cputime cputime; in fill_prstatus() local
1514 thread_group_cputime(p, &cputime); in fill_prstatus()
1515 prstatus->pr_utime = ns_to_timeval(cputime.utime); in fill_prstatus()
1516 prstatus->pr_stime = ns_to_timeval(cputime.stime); in fill_prstatus()
/Linux-v4.19/kernel/rcu/
DKconfig108 userspace extended quiescent state and tickless cputime
/Linux-v4.19/init/
DKconfig363 # Kind of a stub config for the pure tick based cputime accounting
365 bool "Simple tick based cputime accounting"
368 This is the basic tick based cputime accounting that maintains