| /linux/kernel/sched/ |
| H A D | cputime.c | 6 #include <linux/sched/cputime.h> 11 #include <asm/cputime.h> 123 * @cputime: the CPU time spent in user space since the last update 125 void account_user_time(struct task_struct *p, u64 cputime) in account_user_time() argument 130 p->utime += cputime; in account_user_time() 131 account_group_user_time(p, cputime); in account_user_time() 136 task_group_account_field(p, index, cputime); in account_user_time() 145 * @cputime: the CPU time spent in virtual machine since the last update 147 void account_guest_time(struct task_struct *p, u64 cputime) in account_guest_time() argument 152 p->utime += cputime; in account_guest_time() 173 account_system_index_time(struct task_struct * p,u64 cputime,enum cpu_usage_stat index) account_system_index_time() argument 192 account_system_time(struct task_struct * p,int hardirq_offset,u64 cputime) account_system_time() argument 215 account_steal_time(u64 cputime) account_steal_time() argument 226 account_idle_time(u64 cputime) account_idle_time() argument 383 irqtime_account_process_tick(struct task_struct * p,int user_tick,u64 cputime) irqtime_account_process_tick() argument 420 irqtime_account_process_tick(struct task_struct * p,int user_tick,u64 cputime) irqtime_account_process_tick() argument 698 struct task_cputime cputime; thread_group_cputime_adjusted() local 715 u64 cputime, steal; account_process_tick() local 839 struct task_cputime cputime = { task_cputime_adjusted() local 851 struct task_cputime cputime; thread_group_cputime_adjusted() local [all...] |
| H A D | cpuacct.c | 265 struct task_cputime cputime; in cpuacct_stats_show() local 270 memset(&cputime, 0, sizeof(cputime)); in cpuacct_stats_show() 274 cputime.utime += cpustat[CPUTIME_USER]; in cpuacct_stats_show() 275 cputime.utime += cpustat[CPUTIME_NICE]; in cpuacct_stats_show() 276 cputime.stime += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show() 277 cputime.stime += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show() 278 cputime.stime += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show() 280 cputime.sum_exec_runtime += *per_cpu_ptr(ca->cpuusage, cpu); in cpuacct_stats_show() 283 cputime_adjust(&cputime, &seq_css(sf)->cgroup->prev_cputime, in cpuacct_stats_show() 336 void cpuacct_charge(struct task_struct *tsk, u64 cputime) in cpuacct_charge() argument [all …]
|
| /linux/kernel/cgroup/ |
| H A D | rstat.c | 5 #include <linux/sched/cputime.h> 552 dst_bstat->cputime.utime += src_bstat->cputime.utime; in cgroup_base_stat_add() 553 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add() 554 dst_bstat->cputime.sum_exec_runtime += src_bstat->cputime.sum_exec_runtime; in cgroup_base_stat_add() 564 dst_bstat->cputime.utime -= src_bstat->cputime.utime; in cgroup_base_stat_sub() 565 dst_bstat->cputime in cgroup_base_stat_sub() 680 struct task_cputime *cputime = &bstat->cputime; root_cgroup_cputime() local [all...] |
| /linux/include/linux/sched/ |
| H A D | cputime.h | 121 u64 cputime) in account_group_user_time() argument 128 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time() 142 u64 cputime) in account_group_system_time() argument 149 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 | 92 static void account_system_index_scaled(struct task_struct *p, u64 cputime, in account_system_index_scaled() argument 95 p->stimescaled += cputime_to_nsecs(scale_vtime(cputime)); in account_system_index_scaled() 96 account_system_index_time(p, cputime_to_nsecs(cputime), index); in account_system_index_scaled()
|
| /linux/fs/ |
| H A D | binfmt_elf_fdpic.c | 1319 struct task_cputime cputime; in fill_prstatus() local 1325 thread_group_cputime(p, &cputime); in fill_prstatus() 1326 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1327 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
| H A D | binfmt_elf.c | 1496 struct task_cputime cputime; in fill_prstatus() local 1502 thread_group_cputime(p, &cputime); in fill_prstatus() 1503 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus() 1504 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
|
| /linux/kernel/time/ |
| H A D | posix-cpu-timers.c | 7 #include <linux/sched/cputime.h> 241 * Set cputime to sum_cputime if sum_cputime > cputime. Use cmpxchg 242 * to avoid race conditions with concurrent updates to cputime. 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() 263 * thread_group_sample_cputime - Sample cputime for a given task 264 * @tsk: Task for which cputime needs to be started 268 * timer. That means group cputime accountin [all...] |
| /linux/include/linux/ |
| H A D | cgroup-defs.h | 377 struct task_cputime cputime; member 620 struct prev_cputime prev_cputime; /* for printing out cputime */
|
| /linux/init/ |
| H A D | Kconfig | 376 # Kind of a stub config for the pure tick based cputime accounting 378 bool "Simple tick based cputime accounting" 381 This is the basic tick based cputime accounting that maintains
|
| /linux/Documentation/admin-guide/ |
| H A D | kernel-parameters.txt | 6334 Provide statistics on the cputime and count of
|