/Linux-v6.1/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 task_group_account_field(p, CPUTIME_NICE, cputime); in account_guest_time() 151 cpustat[CPUTIME_GUEST_NICE] += cputime; in account_guest_time() [all …]
|
D | cpuacct.c | 263 struct task_cputime cputime; in cpuacct_stats_show() local 268 memset(&cputime, 0, sizeof(cputime)); in cpuacct_stats_show() 272 cputime.utime += cpustat[CPUTIME_USER]; in cpuacct_stats_show() 273 cputime.utime += cpustat[CPUTIME_NICE]; in cpuacct_stats_show() 274 cputime.stime += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show() 275 cputime.stime += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show() 276 cputime.stime += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show() 278 cputime.sum_exec_runtime += *per_cpu_ptr(ca->cpuusage, cpu); in cpuacct_stats_show() 281 cputime_adjust(&cputime, &seq_css(sf)->cgroup->prev_cputime, in cpuacct_stats_show() 334 void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument [all …]
|
/Linux-v6.1/kernel/cgroup/ |
D | rstat.c | 340 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add() 341 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add() 342 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add() 351 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub() 352 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub() 353 dst_bstat->cputime.sum_exec_runtime -= src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_sub() 415 rstatc->bstat.cputime.sum_exec_runtime += delta_exec; in __cgroup_account_cputime() 430 rstatc->bstat.cputime.utime += delta_exec; in __cgroup_account_cputime_field() 435 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field() 457 struct task_cputime *cputime = &bstat->cputime; in root_cgroup_cputime() local [all …]
|
/Linux-v6.1/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-v6.1/include/linux/sched/ |
D | cputime.h | 129 u64 cputime) in account_group_user_time() argument 136 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time() 150 u64 cputime) in account_group_system_time() argument 157 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
|
/Linux-v6.1/arch/powerpc/include/asm/ |
D | cputime.h | 40 #define cputime_to_nsecs(cputime) tb_to_ns((__force u64)cputime) argument
|
/Linux-v6.1/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-v6.1/fs/ocfs2/cluster/ |
D | heartbeat.c | 703 u64 cputime; in o2hb_prepare_block() local 713 cputime = ktime_get_real_seconds(); in o2hb_prepare_block() 714 if (!cputime) in o2hb_prepare_block() 715 cputime = 1; in o2hb_prepare_block() 717 hb_block->hb_seq = cpu_to_le64(cputime); in o2hb_prepare_block() 887 u64 cputime; in o2hb_check_slot() local 932 cputime = le64_to_cpu(hb_block->hb_seq); in o2hb_check_slot() 933 if (slot->ds_last_time != cputime) in o2hb_check_slot() 937 slot->ds_last_time = cputime; in o2hb_check_slot()
|
/Linux-v6.1/kernel/time/ |
D | Kconfig | 155 tickless cputime accounting. The former case relies on context 173 userspace extended quiescent state and tickless cputime
|
D | posix-cpu-timers.c | 244 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument 248 curr_cputime = atomic64_read(cputime); in __update_gt_cputime() 250 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
|
/Linux-v6.1/include/linux/ |
D | cgroup.h | 775 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
|
D | cgroup-defs.h | 303 struct task_cputime cputime; member
|
/Linux-v6.1/fs/ |
D | binfmt_elf_fdpic.c | 1302 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()
|
D | binfmt_elf.c | 1550 struct task_cputime cputime; in fill_prstatus() local 1556 thread_group_cputime(p, &cputime); in fill_prstatus() 1557 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1558 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
/Linux-v6.1/init/ |
D | Kconfig | 478 # Kind of a stub config for the pure tick based cputime accounting 480 bool "Simple tick based cputime accounting" 483 This is the basic tick based cputime accounting that maintains
|