Home
last modified time | relevance | path

Searched refs:delta_exec (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/kernel/sched/
Dstop_task.c69 u64 delta_exec; in put_prev_task_stop() local
71 delta_exec = rq_clock_task(rq) - curr->se.exec_start; in put_prev_task_stop()
72 if (unlikely((s64)delta_exec < 0)) in put_prev_task_stop()
73 delta_exec = 0; in put_prev_task_stop()
76 max(curr->se.statistics.exec_max, delta_exec)); in put_prev_task_stop()
78 curr->se.sum_exec_runtime += delta_exec; in put_prev_task_stop()
79 account_group_exec_runtime(curr, delta_exec); in put_prev_task_stop()
82 cgroup_account_cputime(curr, delta_exec); in put_prev_task_stop()
Ddeadline.c1183 u64 delta_exec, scaled_delta_exec; in update_curr_dl() local
1199 delta_exec = now - curr->se.exec_start; in update_curr_dl()
1200 if (unlikely((s64)delta_exec <= 0)) { in update_curr_dl()
1207 max(curr->se.statistics.exec_max, delta_exec)); in update_curr_dl()
1209 curr->se.sum_exec_runtime += delta_exec; in update_curr_dl()
1210 account_group_exec_runtime(curr, delta_exec); in update_curr_dl()
1213 cgroup_account_cputime(curr, delta_exec); in update_curr_dl()
1226 scaled_delta_exec = grub_reclaim(delta_exec, in update_curr_dl()
1233 scaled_delta_exec = cap_scale(delta_exec, scale_freq); in update_curr_dl()
1277 rt_rq->rt_time += delta_exec; in update_curr_dl()
Drt.c959 u64 delta_exec; in update_curr_rt() local
966 delta_exec = now - curr->se.exec_start; in update_curr_rt()
967 if (unlikely((s64)delta_exec <= 0)) in update_curr_rt()
971 max(curr->se.statistics.exec_max, delta_exec)); in update_curr_rt()
973 curr->se.sum_exec_runtime += delta_exec; in update_curr_rt()
974 account_group_exec_runtime(curr, delta_exec); in update_curr_rt()
977 cgroup_account_cputime(curr, delta_exec); in update_curr_rt()
987 rt_rq->rt_time += delta_exec; in update_curr_rt()
Dfair.c218 static u64 __calc_delta(u64 delta_exec, unsigned long weight, struct load_weight *lw) in __calc_delta() argument
240 return mul_u64_u32_shr(delta_exec, fact, shift); in __calc_delta()
500 void account_cfs_rq_runtime(struct cfs_rq *cfs_rq, u64 delta_exec);
837 u64 delta_exec; in update_curr() local
842 delta_exec = now - curr->exec_start; in update_curr()
843 if (unlikely((s64)delta_exec <= 0)) in update_curr()
849 max(delta_exec, curr->statistics.exec_max)); in update_curr()
851 curr->sum_exec_runtime += delta_exec; in update_curr()
852 schedstat_add(cfs_rq->exec_clock, delta_exec); in update_curr()
854 curr->vruntime += calc_delta_fair(delta_exec, curr); in update_curr()
[all …]
/Linux-v5.4/include/linux/
Dcgroup.h769 void __cgroup_account_cputime(struct cgroup *cgrp, u64 delta_exec);
771 enum cpu_usage_stat index, u64 delta_exec);
774 u64 delta_exec) in cgroup_account_cputime() argument
778 cpuacct_charge(task, delta_exec); in cgroup_account_cputime()
783 __cgroup_account_cputime(cgrp, delta_exec); in cgroup_account_cputime()
789 u64 delta_exec) in cgroup_account_cputime_field() argument
793 cpuacct_account_field(task, index, delta_exec); in cgroup_account_cputime_field()
798 __cgroup_account_cputime_field(cgrp, index, delta_exec); in cgroup_account_cputime_field()
805 u64 delta_exec) {} in cgroup_account_cputime() argument
808 u64 delta_exec) {} in cgroup_account_cputime_field() argument
/Linux-v5.4/kernel/cgroup/
Drstat.c365 void __cgroup_account_cputime(struct cgroup *cgrp, u64 delta_exec) in __cgroup_account_cputime() argument
370 rstatc->bstat.cputime.sum_exec_runtime += delta_exec; in __cgroup_account_cputime()
375 enum cpu_usage_stat index, u64 delta_exec) in __cgroup_account_cputime_field() argument
384 rstatc->bstat.cputime.utime += delta_exec; in __cgroup_account_cputime_field()
389 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()