/Linux-v5.4/kernel/sched/ |
D | cputime.c | 117 void account_user_time(struct task_struct *p, u64 cputime) in account_user_time() argument 122 p->utime += cputime; in account_user_time() 123 account_group_user_time(p, cputime); in account_user_time() 128 task_group_account_field(p, index, cputime); in account_user_time() 139 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument 144 p->utime += cputime; in account_guest_time() 145 account_group_user_time(p, cputime); in account_guest_time() 146 p->gtime += cputime; in account_guest_time() 150 cpustat[CPUTIME_NICE] += cputime; in account_guest_time() 151 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time() [all …]
|
D | Makefile | 19 obj-y += core.o loadavg.o clock.o cputime.o
|
D | cpuacct.c | 338 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-v5.4/kernel/cgroup/ |
D | rstat.c | 310 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_accumulate() 311 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_accumulate() 312 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_accumulate() 319 struct task_cputime *last_cputime = &rstatc->last_bstat.cputime; in cgroup_base_stat_flush() 320 struct task_cputime cputime; in cgroup_base_stat_flush() local 327 cputime = rstatc->bstat.cputime; in cgroup_base_stat_flush() 331 delta.cputime.utime = cputime.utime - last_cputime->utime; in cgroup_base_stat_flush() 332 delta.cputime.stime = cputime.stime - last_cputime->stime; in cgroup_base_stat_flush() 333 delta.cputime.sum_exec_runtime = cputime.sum_exec_runtime - in cgroup_base_stat_flush() 335 *last_cputime = cputime; in cgroup_base_stat_flush() [all …]
|
/Linux-v5.4/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
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/fs/ocfs2/cluster/ |
D | heartbeat.c | 712 u64 cputime; in o2hb_prepare_block() local 722 cputime = ktime_get_real_seconds(); in o2hb_prepare_block() 723 if (!cputime) in o2hb_prepare_block() 724 cputime = 1; in o2hb_prepare_block() 726 hb_block->hb_seq = cpu_to_le64(cputime); in o2hb_prepare_block() 896 u64 cputime; in o2hb_check_slot() local 941 cputime = le64_to_cpu(hb_block->hb_seq); in o2hb_check_slot() 942 if (slot->ds_last_time != cputime) in o2hb_check_slot() 946 slot->ds_last_time = cputime; in o2hb_check_slot()
|
/Linux-v5.4/include/linux/ |
D | cgroup.h | 761 void cpuacct_charge(struct task_struct *tsk, u64 cputime); 764 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
|
D | cgroup-defs.h | 280 struct task_cputime cputime; member
|
/Linux-v5.4/kernel/time/ |
D | posix-cpu-timers.c | 247 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument 251 curr_cputime = atomic64_read(cputime); in __update_gt_cputime() 253 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
|
D | Kconfig | 139 userspace extended quiescent state and tickless cputime
|
/Linux-v5.4/fs/ |
D | binfmt_elf_fdpic.c | 1355 struct task_cputime cputime; in fill_prstatus() local 1361 thread_group_cputime(p, &cputime); in fill_prstatus() 1362 prstatus->pr_utime = ns_to_timeval(cputime.utime); in fill_prstatus() 1363 prstatus->pr_stime = ns_to_timeval(cputime.stime); in fill_prstatus()
|
D | binfmt_elf.c | 1485 struct task_cputime cputime; in fill_prstatus() local 1491 thread_group_cputime(p, &cputime); in fill_prstatus() 1492 prstatus->pr_utime = ns_to_timeval(cputime.utime); in fill_prstatus() 1493 prstatus->pr_stime = ns_to_timeval(cputime.stime); in fill_prstatus()
|
/Linux-v5.4/init/ |
D | Kconfig | 412 # Kind of a stub config for the pure tick based cputime accounting 414 bool "Simple tick based cputime accounting" 417 This is the basic tick based cputime accounting that maintains
|