Lines Matching refs:bstat
436 delta = rstatc->bstat; in cgroup_base_stat_flush()
441 cgroup_base_stat_add(&cgrp->bstat, &delta); in cgroup_base_stat_flush()
447 delta = cgrp->bstat; in cgroup_base_stat_flush()
449 cgroup_base_stat_add(&parent->bstat, &delta); in cgroup_base_stat_flush()
485 rstatc->bstat.cputime.sum_exec_runtime += delta_exec; in __cgroup_account_cputime()
499 rstatc->bstat.ntime += delta_exec; in __cgroup_account_cputime_field()
502 rstatc->bstat.cputime.utime += delta_exec; in __cgroup_account_cputime_field()
507 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()
511 rstatc->bstat.forceidle_sum += delta_exec; in __cgroup_account_cputime_field()
527 static void root_cgroup_cputime(struct cgroup_base_stat *bstat) in root_cgroup_cputime() argument
529 struct task_cputime *cputime = &bstat->cputime; in root_cgroup_cputime()
532 memset(bstat, 0, sizeof(*bstat)); in root_cgroup_cputime()
554 bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE]; in root_cgroup_cputime()
556 bstat->ntime += cpustat[CPUTIME_NICE]; in root_cgroup_cputime()
561 static void cgroup_force_idle_show(struct seq_file *seq, struct cgroup_base_stat *bstat) in cgroup_force_idle_show() argument
564 u64 forceidle_time = bstat->forceidle_sum; in cgroup_force_idle_show()
574 struct cgroup_base_stat bstat; in cgroup_base_stat_cputime_show() local
579 bstat = cgrp->bstat; in cgroup_base_stat_cputime_show()
580 cputime_adjust(&cgrp->bstat.cputime, &cgrp->prev_cputime, in cgroup_base_stat_cputime_show()
581 &bstat.cputime.utime, &bstat.cputime.stime); in cgroup_base_stat_cputime_show()
584 root_cgroup_cputime(&bstat); in cgroup_base_stat_cputime_show()
587 do_div(bstat.cputime.sum_exec_runtime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
588 do_div(bstat.cputime.utime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
589 do_div(bstat.cputime.stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
590 do_div(bstat.ntime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
596 bstat.cputime.sum_exec_runtime, in cgroup_base_stat_cputime_show()
597 bstat.cputime.utime, in cgroup_base_stat_cputime_show()
598 bstat.cputime.stime, in cgroup_base_stat_cputime_show()
599 bstat.ntime); in cgroup_base_stat_cputime_show()
601 cgroup_force_idle_show(seq, &bstat); in cgroup_base_stat_cputime_show()