/linux/kernel/sched/ |
H A D | cputime.c | 126 p->utime += cputime; in account_user_time() 148 p->utime += cputime; in account_guest_time() 150 p->gtime += cputime; in account_guest_time() 172 p->stime += cputime; in account_system_index_time() 392 cputime -= other; in irqtime_account_process_tick() 463 *ut = cputime.utime; in thread_group_cputime_adjusted() 476 u64 cputime, steal; in account_process_tick() local 492 cputime -= steal; in account_process_tick() 508 u64 cputime, steal; in account_idle_ticks() local 521 cputime -= steal; in account_idle_ticks() [all …]
|
H A 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/kernel/cgroup/ |
H A D | rstat.c | 441 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add() 442 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add() 443 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add() 452 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub() 453 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub() 454 dst_bstat->cputime.sum_exec_runtime -= src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_sub() 566 struct task_cputime *cputime = &bstat->cputime; in root_cgroup_cputime() local 580 cputime->utime += user; in root_cgroup_cputime() 585 cputime->stime += sys; in root_cgroup_cputime() 618 utime = bstat.cputime.utime; in cgroup_base_stat_cputime_show() [all …]
|
/linux/include/linux/sched/ |
H A D | cputime.h | 120 u64 cputime) in account_group_user_time() argument 127 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time() 141 u64 cputime) in account_group_system_time() argument 148 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
|
/linux/arch/s390/include/asm/ |
H A D | cputime.h | 17 #define cputime_to_nsecs(cputime) tod_to_ns(cputime) argument
|
/linux/arch/powerpc/include/asm/ |
H A D | cputime.h | 25 #define cputime_to_nsecs(cputime) tb_to_ns(cputime) argument
|
/linux/arch/s390/kernel/ |
H A D | vtime.c | 106 static void account_system_index_scaled(struct task_struct *p, u64 cputime, in account_system_index_scaled() argument 109 p->stimescaled += cputime_to_nsecs(scale_vtime(cputime)); in account_system_index_scaled() 110 account_system_index_time(p, cputime_to_nsecs(cputime), index); in account_system_index_scaled()
|
/linux/fs/ocfs2/cluster/ |
H A 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()
|
/linux/kernel/time/ |
H A D | Kconfig | 160 tickless cputime accounting. The former case relies on context 178 userspace extended quiescent state and tickless cputime
|
H A D | posix-cpu-timers.c | 244 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument 246 u64 curr_cputime = atomic64_read(cputime); in __update_gt_cputime() 251 } while (!atomic64_try_cmpxchg(cputime, &curr_cputime, sum_cputime)); in __update_gt_cputime()
|
/linux/Documentation/RCU/ |
H A D | stallwarn.rst | 403 rcu: cputime: 69 1 2425 ==> 2500(ms) 408 first three values in row "cputime:" indicate the CPU time in 432 rcu: cputime: 0 0 0 ==> 2500(ms) 449 rcu: cputime: 49 0 2446 ==> 2500(ms) 463 rcu: cputime: 69 1 2425 ==> 2500(ms) 474 rcu: cputime: xx xx 0 ==> 2500(ms) 478 are zero. The number and cputime of soft interrupts will usually be
|
/linux/include/linux/ |
H A D | cgroup.h | 699 void cpuacct_charge(struct task_struct *tsk, u64 cputime); 702 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
|
H A D | cgroup-defs.h | 308 struct task_cputime cputime; member
|
/linux/fs/ |
H A D | binfmt_elf_fdpic.c | 1295 struct task_cputime cputime; in fill_prstatus() local 1301 thread_group_cputime(p, &cputime); in fill_prstatus() 1302 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1303 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
H A D | binfmt_elf.c | 1487 struct task_cputime cputime; in fill_prstatus() local 1493 thread_group_cputime(p, &cputime); in fill_prstatus() 1494 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1495 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
/linux/kernel/rcu/ |
H A D | Kconfig.debug | 101 (hard interrupts, soft interrupts, task switches) and the cputime of
|
/linux/init/ |
H A D | Kconfig | 489 # Kind of a stub config for the pure tick based cputime accounting 491 bool "Simple tick based cputime accounting" 494 This is the basic tick based cputime accounting that maintains
|
/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 5479 Provide statistics on the cputime and count of
|