Home
last modified time | relevance | path

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

/linux-6.15/kernel/sched/
H A Dcputime.c124 p->utime += cputime; in account_user_time()
146 p->utime += cputime; in account_guest_time()
148 p->gtime += cputime; in account_guest_time()
170 p->stime += cputime; in account_system_index_time()
390 cputime -= other; in irqtime_account_process_tick()
461 *ut = cputime.utime; in thread_group_cputime_adjusted()
474 u64 cputime, steal; in account_process_tick() local
490 cputime -= steal; in account_process_tick()
506 u64 cputime, steal; in account_idle_ticks() local
519 cputime -= steal; in account_idle_ticks()
[all …]
H A Dcpuacct.c263 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-6.15/kernel/cgroup/
H A Drstat.c400 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add()
401 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add()
402 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add()
412 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub()
413 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub()
414 dst_bstat->cputime.sum_exec_runtime -= src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_sub()
529 struct task_cputime *cputime = &bstat->cputime; in root_cgroup_cputime() local
548 cputime->stime += sys; in root_cgroup_cputime()
581 &bstat.cputime.utime, &bstat.cputime.stime); in cgroup_base_stat_cputime_show()
597 bstat.cputime.utime, in cgroup_base_stat_cputime_show()
[all …]
/linux-6.15/include/linux/sched/
H A Dcputime.h120 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-6.15/arch/s390/include/asm/
H A Dcputime.h17 #define cputime_to_nsecs(cputime) tod_to_ns(cputime) argument
/linux-6.15/arch/powerpc/include/asm/
H A Dcputime.h25 #define cputime_to_nsecs(cputime) tb_to_ns(cputime) argument
/linux-6.15/arch/s390/kernel/
H A Dvtime.c107 static void account_system_index_scaled(struct task_struct *p, u64 cputime, in account_system_index_scaled() argument
110 p->stimescaled += cputime_to_nsecs(scale_vtime(cputime)); in account_system_index_scaled()
111 account_system_index_time(p, cputime_to_nsecs(cputime), index); in account_system_index_scaled()
/linux-6.15/fs/ocfs2/cluster/
H A Dheartbeat.c711 u64 cputime; in o2hb_prepare_block() local
721 cputime = ktime_get_real_seconds(); in o2hb_prepare_block()
722 if (!cputime) in o2hb_prepare_block()
723 cputime = 1; in o2hb_prepare_block()
725 hb_block->hb_seq = cpu_to_le64(cputime); in o2hb_prepare_block()
895 u64 cputime; in o2hb_check_slot() local
940 cputime = le64_to_cpu(hb_block->hb_seq); in o2hb_check_slot()
941 if (slot->ds_last_time != cputime) in o2hb_check_slot()
945 slot->ds_last_time = cputime; in o2hb_check_slot()
/linux-6.15/kernel/time/
H A DKconfig155 tickless cputime accounting. The former case relies on context
173 userspace extended quiescent state and tickless cputime
H A Dposix-cpu-timers.c244 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-6.15/Documentation/RCU/
H A Dstallwarn.rst410 rcu: cputime: 69 1 2425 ==> 2500(ms)
415 first three values in row "cputime:" indicate the CPU time in
439 rcu: cputime: 0 0 0 ==> 2500(ms)
456 rcu: cputime: 49 0 2446 ==> 2500(ms)
470 rcu: cputime: 69 1 2425 ==> 2500(ms)
481 rcu: cputime: xx xx 0 ==> 2500(ms)
485 are zero. The number and cputime of soft interrupts will usually be
/linux-6.15/include/linux/
H A Dcgroup.h698 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
701 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
H A Dcgroup-defs.h322 struct task_cputime cputime; member
/linux-6.15/fs/
H A Dbinfmt_elf_fdpic.c1305 struct task_cputime cputime; in fill_prstatus() local
1311 thread_group_cputime(p, &cputime); in fill_prstatus()
1312 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus()
1313 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
H A Dbinfmt_elf.c1555 struct task_cputime cputime; in fill_prstatus() local
1561 thread_group_cputime(p, &cputime); in fill_prstatus()
1562 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus()
1563 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
/linux-6.15/kernel/rcu/
H A DKconfig.debug146 (hard interrupts, soft interrupts, task switches) and the cputime of
/linux-6.15/init/
H A DKconfig521 # Kind of a stub config for the pure tick based cputime accounting
523 bool "Simple tick based cputime accounting"
526 This is the basic tick based cputime accounting that maintains
/linux-6.15/Documentation/admin-guide/
H A Dkernel-parameters.txt5869 Provide statistics on the cputime and count of