Lines Matching refs:bstat
475 delta = rstatc->bstat; in cgroup_base_stat_flush()
480 cgroup_base_stat_add(&cgrp->bstat, &delta); in cgroup_base_stat_flush()
486 delta = cgrp->bstat; in cgroup_base_stat_flush()
488 cgroup_base_stat_add(&parent->bstat, &delta); in cgroup_base_stat_flush()
524 rstatc->bstat.cputime.sum_exec_runtime += delta_exec; in __cgroup_account_cputime()
539 rstatc->bstat.cputime.utime += delta_exec; in __cgroup_account_cputime_field()
544 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()
548 rstatc->bstat.forceidle_sum += delta_exec; in __cgroup_account_cputime_field()
564 static void root_cgroup_cputime(struct cgroup_base_stat *bstat) in root_cgroup_cputime() argument
566 struct task_cputime *cputime = &bstat->cputime; in root_cgroup_cputime()
569 memset(bstat, 0, sizeof(*bstat)); in root_cgroup_cputime()
592 bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE]; in root_cgroup_cputime()
598 static void cgroup_force_idle_show(struct seq_file *seq, struct cgroup_base_stat *bstat) in cgroup_force_idle_show() argument
601 u64 forceidle_time = bstat->forceidle_sum; in cgroup_force_idle_show()
615 usage = cgrp->bstat.cputime.sum_exec_runtime; in cgroup_base_stat_cputime_show()
616 cputime_adjust(&cgrp->bstat.cputime, &cgrp->prev_cputime, in cgroup_base_stat_cputime_show()
621 root_cgroup_cputime(&cgrp->bstat); in cgroup_base_stat_cputime_show()
622 usage = cgrp->bstat.cputime.sum_exec_runtime; in cgroup_base_stat_cputime_show()
623 utime = cgrp->bstat.cputime.utime; in cgroup_base_stat_cputime_show()
624 stime = cgrp->bstat.cputime.stime; in cgroup_base_stat_cputime_show()
636 cgroup_force_idle_show(seq, &cgrp->bstat); in cgroup_base_stat_cputime_show()