Home
last modified time | relevance | path

Searched refs:cputime (Results 1 - 25 of 79) sorted by relevance

1234

/kernel/linux/linux-5.10/kernel/cgroup/
H A Drstat.c4 #include <linux/sched/cputime.h>
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 in cgroup_base_stat_sub()
397 root_cgroup_cputime(struct task_cputime *cputime) root_cgroup_cputime() argument
431 struct task_cputime cputime; cgroup_base_stat_cputime_show() local
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Dcputime.c7 #include <asm/cputime.h>
134 * @cputime: the CPU time spent in user space since the last update
136 void account_user_time(struct task_struct *p, u64 cputime) in account_user_time() argument
141 p->utime += cputime; in account_user_time()
142 account_group_user_time(p, cputime); in account_user_time()
147 task_group_account_field(p, index, cputime); in account_user_time()
156 * @cputime: the CPU time spent in virtual machine since the last update
158 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument
163 p->utime += cputime; in account_guest_time()
164 account_group_user_time(p, cputime); in account_guest_time()
183 account_system_index_time(struct task_struct *p, u64 cputime, enum cpu_usage_stat index) account_system_index_time() argument
203 account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime) account_system_time() argument
226 account_steal_time(u64 cputime) account_steal_time() argument
237 account_idle_time(u64 cputime) account_idle_time() argument
394 u64 other, cputime = TICK_NSEC * ticks; irqtime_account_process_tick() local
487 struct task_cputime cputime; thread_group_cputime_adjusted() local
504 u64 cputime, steal; account_process_tick() local
536 u64 cputime, steal; account_idle_ticks() local
647 struct task_cputime cputime = { task_cputime_adjusted() local
659 struct task_cputime cputime; thread_group_cputime_adjusted() local
[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, in cpuacct_stats_show()
334 cpuacct_charge(struct task_struct *tsk, u64 cputime) cpuacct_charge() argument
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Dcputime.c130 * @cputime: the CPU time spent in user space since the last update
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()
152 * @cputime: the CPU time spent in virtual machine since the last update
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()
179 account_system_index_time(struct task_struct *p, u64 cputime, enum cpu_usage_stat index) account_system_index_time() argument
199 account_system_time(struct task_struct *p, int hardirq_offset, u64 cputime) account_system_time() argument
222 account_steal_time(u64 cputime) account_steal_time() argument
233 account_idle_time(u64 cputime) account_idle_time() argument
375 u64 other, cputime = TICK_NSEC * ticks; irqtime_account_process_tick() local
471 struct task_cputime cputime; thread_group_cputime_adjusted() local
488 u64 cputime, steal; account_process_tick() local
520 u64 cputime, steal; account_idle_ticks() local
631 struct task_cputime cputime = { task_cputime_adjusted() local
642 struct task_cputime cputime; thread_group_cputime_adjusted() local
[all...]
H A DMakefile25 obj-y += core.o loadavg.o clock.o cputime.o
H A Dcpuacct.c329 void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument
337 *per_cpu_ptr(ca->cpuusage, cpu) += cputime; in cpuacct_charge()
/kernel/linux/linux-6.6/kernel/cgroup/
H A Drstat.c4 #include <linux/sched/cputime.h>
324 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add()
325 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add()
326 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add()
335 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub()
336 dst_bstat->cputime in cgroup_base_stat_sub()
449 struct task_cputime *cputime = &bstat->cputime; root_cgroup_cputime() local
[all...]
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dcputime.h22 * Convert cputime to microseconds.
24 static inline u64 cputime_to_usecs(const u64 cputime) in cputime_to_usecs() argument
26 return cputime >> 12; in cputime_to_usecs()
30 * Convert cputime to nanoseconds.
32 #define cputime_to_nsecs(cputime) tod_to_ns(cputime)
/kernel/linux/linux-5.10/include/linux/sched/
H A Dcputime.h8 * cputime accounting APIs:
12 #include <asm/cputime.h>
93 * cputime consumed by that task, even though the task can still be in get_running_cputimer()
96 * In order to keep a consistent behaviour between thread group cputime in get_running_cputimer()
97 * and thread group cputimer accounting, lets also ignore the cputime in get_running_cputimer()
121 * @cputime: Time value by which to increment the utime field of the
128 u64 cputime) in account_group_user_time()
135 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
142 * @cputime: Time value by which to increment the stime field of the
149 u64 cputime) in account_group_system_time()
127 account_group_user_time(struct task_struct *tsk, u64 cputime) account_group_user_time() argument
148 account_group_system_time(struct task_struct *tsk, u64 cputime) account_group_system_time() argument
[all...]
/kernel/linux/linux-6.6/include/linux/sched/
H A Dcputime.h8 * cputime accounting APIs:
85 * cputime consumed by that task, even though the task can still be in get_running_cputimer()
88 * In order to keep a consistent behaviour between thread group cputime in get_running_cputimer()
89 * and thread group cputimer accounting, lets also ignore the cputime in get_running_cputimer()
113 * @cputime: Time value by which to increment the utime field of the
120 u64 cputime) in account_group_user_time()
127 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
134 * @cputime: Time value by which to increment the stime field of the
141 u64 cputime) in account_group_system_time()
148 atomic64_add(cputime, in account_group_system_time()
119 account_group_user_time(struct task_struct *tsk, u64 cputime) account_group_user_time() argument
140 account_group_system_time(struct task_struct *tsk, u64 cputime) account_group_system_time() argument
[all...]
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dcputime.h15 * Convert cputime to nanoseconds.
17 #define cputime_to_nsecs(cputime) tod_to_ns(cputime)
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dcputime.h3 * Definitions for measuring cputime on powerpc machines.
25 #define cputime_to_nsecs(cputime) tb_to_ns(cputime)
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dcputime.h3 * Definitions for measuring cputime on powerpc machines.
30 * Convert cputime <-> microseconds
39 #define cputime_to_nsecs(cputime) tb_to_ns((__force u64)cputime)
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dvtime.c10 #include <linux/sched/cputime.h>
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()
154 /* Calculate cputime delta */ in do_account_vtime()
H A Didle.c16 #include <linux/sched/cputime.h>
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dvtime.c16 #include <asm/cputime.h>
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()
150 /* Calculate cputime delta */ in do_account_vtime()
H A Didle.c17 #include <asm/cputime.h>
/kernel/linux/linux-6.6/arch/ia64/kernel/
H A Dtime.c26 #include <linux/sched/cputime.h>
28 #include <asm/cputime.h>
/kernel/linux/linux-5.10/fs/ocfs2/cluster/
H A Dheartbeat.c710 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-6.6/fs/ocfs2/cluster/
H A Dheartbeat.c703 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()
/kernel/linux/linux-5.10/include/linux/
H A Dcgroup.h764 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
767 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
/kernel/linux/linux-6.6/include/linux/
H A Dcgroup.h701 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
704 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge() argument
/kernel/linux/linux-5.10/kernel/
H A Dtsacct.c11 #include <linux/sched/cputime.h>
158 * acct_account_cputime - update mm integral after cputime update
H A Ddelayacct.c9 #include <linux/sched/cputime.h>
/kernel/linux/linux-6.6/fs/proc/
H A Dstat.c15 #include <linux/sched/cputime.h>

Completed in 19 milliseconds

1234