Home
last modified time | relevance | path

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

/Linux-v5.15/kernel/cgroup/
Drstat.c304 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add()
305 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add()
306 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add()
312 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub()
313 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub()
314 dst_bstat->cputime.sum_exec_runtime -= src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_sub()
331 cur.cputime = rstatc->bstat.cputime; in cgroup_base_stat_flush()
374 rstatc->bstat.cputime.sum_exec_runtime += delta_exec; in __cgroup_account_cputime()
389 rstatc->bstat.cputime.utime += delta_exec; in __cgroup_account_cputime_field()
394 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()
[all …]
/Linux-v5.15/kernel/sched/
Dcputime.c118 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()
[all …]
DMakefile25 obj-y += core.o loadavg.o clock.o cputime.o
Dcpuacct.c339 void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument
351 __this_cpu_add(ca->cpuusage->usages[index], cputime); in cpuacct_charge()
/Linux-v5.15/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-v5.15/include/linux/sched/
Dcputime.h128 u64 cputime) in account_group_user_time() argument
135 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
149 u64 cputime) in account_group_system_time() argument
156 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
/Linux-v5.15/arch/powerpc/include/asm/
Dcputime.h39 #define cputime_to_nsecs(cputime) tb_to_ns((__force u64)cputime) argument
/Linux-v5.15/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-v5.15/fs/ocfs2/cluster/
Dheartbeat.c708 u64 cputime; in o2hb_prepare_block() local
718 cputime = ktime_get_real_seconds(); in o2hb_prepare_block()
719 if (!cputime) in o2hb_prepare_block()
720 cputime = 1; in o2hb_prepare_block()
722 hb_block->hb_seq = cpu_to_le64(cputime); in o2hb_prepare_block()
892 u64 cputime; in o2hb_check_slot() local
937 cputime = le64_to_cpu(hb_block->hb_seq); in o2hb_check_slot()
938 if (slot->ds_last_time != cputime) in o2hb_check_slot()
942 slot->ds_last_time = cputime; in o2hb_check_slot()
/Linux-v5.15/include/linux/
Dcgroup.h775 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
778 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
Dcgroup-defs.h289 struct task_cputime cputime; member
/Linux-v5.15/kernel/time/
Dposix-cpu-timers.c237 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument
241 curr_cputime = atomic64_read(cputime); in __update_gt_cputime()
243 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
DKconfig158 userspace extended quiescent state and tickless cputime
/Linux-v5.15/fs/
Dbinfmt_elf_fdpic.c1302 struct task_cputime cputime; in fill_prstatus() local
1308 thread_group_cputime(p, &cputime); in fill_prstatus()
1309 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus()
1310 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
Dbinfmt_elf.c1514 struct task_cputime cputime; in fill_prstatus() local
1520 thread_group_cputime(p, &cputime); in fill_prstatus()
1521 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus()
1522 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
/Linux-v5.15/init/
DKconfig475 # Kind of a stub config for the pure tick based cputime accounting
477 bool "Simple tick based cputime accounting"
480 This is the basic tick based cputime accounting that maintains