/kernel/linux/linux-5.10/kernel/cgroup/ |
D | rstat.c | 299 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add() 300 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add() 301 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add() 307 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub() 308 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub() 309 dst_bstat->cputime.sum_exec_runtime -= src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_sub() 322 cur.cputime = rstatc->bstat.cputime; in cgroup_base_stat_flush() 363 rstatc->bstat.cputime.sum_exec_runtime += delta_exec; in __cgroup_account_cputime() 377 rstatc->bstat.cputime.utime += delta_exec; in __cgroup_account_cputime_field() 382 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field() [all …]
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | cputime.c | 132 void account_user_time(struct task_struct *p, u64 cputime) in account_user_time() argument 137 p->utime += cputime; in account_user_time() 138 account_group_user_time(p, cputime); in account_user_time() 143 task_group_account_field(p, index, cputime); in account_user_time() 154 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument 159 p->utime += cputime; in account_guest_time() 160 account_group_user_time(p, cputime); in account_guest_time() 161 p->gtime += cputime; in account_guest_time() 165 task_group_account_field(p, CPUTIME_NICE, cputime); in account_guest_time() 166 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time() [all …]
|
D | Makefile | 25 obj-y += core.o loadavg.o clock.o cputime.o
|
D | cpuacct.c | 339 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()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | cputime.h | 24 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
|
/kernel/linux/linux-5.10/include/linux/sched/ |
D | cputime.h | 128 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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | cputime.h | 39 #define cputime_to_nsecs(cputime) tb_to_ns((__force u64)cputime) argument
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | vtime.c | 114 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()
|
/kernel/linux/linux-5.10/fs/ocfs2/cluster/ |
D | heartbeat.c | 710 u64 cputime; in o2hb_prepare_block() local 720 cputime = ktime_get_real_seconds(); in o2hb_prepare_block() 721 if (!cputime) in o2hb_prepare_block() 722 cputime = 1; in o2hb_prepare_block() 724 hb_block->hb_seq = cpu_to_le64(cputime); in o2hb_prepare_block() 894 u64 cputime; in o2hb_check_slot() local 939 cputime = le64_to_cpu(hb_block->hb_seq); in o2hb_check_slot() 940 if (slot->ds_last_time != cputime) in o2hb_check_slot() 944 slot->ds_last_time = cputime; in o2hb_check_slot()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cgroup.h | 762 void cpuacct_charge(struct task_struct *tsk, u64 cputime); 765 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
|
D | cgroup-defs.h | 285 struct task_cputime cputime; member
|
/kernel/linux/linux-5.10/kernel/time/ |
D | posix-cpu-timers.c | 237 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()
|
D | Kconfig | 148 userspace extended quiescent state and tickless cputime
|
/kernel/linux/linux-5.10/fs/ |
D | binfmt_elf_fdpic.c | 1317 struct task_cputime cputime; in fill_prstatus() local 1323 thread_group_cputime(p, &cputime); in fill_prstatus() 1324 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1325 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
D | binfmt_elf.c | 1516 struct task_cputime cputime; in fill_prstatus() local 1522 thread_group_cputime(p, &cputime); in fill_prstatus() 1523 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1524 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
/kernel/linux/linux-5.10/init/ |
D | Kconfig | 449 # Kind of a stub config for the pure tick based cputime accounting 451 bool "Simple tick based cputime accounting" 454 This is the basic tick based cputime accounting that maintains
|