diff options
author | Tejun Heo <tj@kernel.org> | 2017-10-24 01:18:27 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-10-26 19:56:33 +0200 |
commit | d41bf8c9deaed1a90b18d3ffc5639d4c19f0259a (patch) | |
tree | 38573de8fb3d037a30430bd16af6806031c2036c /kernel/cgroup/cgroup-internal.h | |
parent | sched: Implement interface for cgroup unified hierarchy (diff) | |
download | linux-d41bf8c9deaed1a90b18d3ffc5639d4c19f0259a.tar.xz linux-d41bf8c9deaed1a90b18d3ffc5639d4c19f0259a.zip |
cgroup, sched: Move basic cpu stats from cgroup.stat to cpu.stat
The basic cpu stat is currently shown with "cpu." prefix in
cgroup.stat, and the same information is duplicated in cpu.stat when
cpu controller is enabled. This is ugly and not very scalable as we
want to expand the coverage of stat information which is always
available.
This patch makes cgroup core always create "cpu.stat" file and show
the basic cpu stat there and calls the cpu controller to show the
extra stats when enabled. This ensures that the same information
isn't presented in multiple places and makes future expansion of basic
stats easier.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'kernel/cgroup/cgroup-internal.h')
-rw-r--r-- | kernel/cgroup/cgroup-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup/cgroup-internal.h b/kernel/cgroup/cgroup-internal.h index fa642c99586a..4dc317090920 100644 --- a/kernel/cgroup/cgroup-internal.h +++ b/kernel/cgroup/cgroup-internal.h @@ -205,6 +205,7 @@ int cgroup_task_count(const struct cgroup *cgrp); void cgroup_stat_flush(struct cgroup *cgrp); int cgroup_stat_init(struct cgroup *cgrp); void cgroup_stat_exit(struct cgroup *cgrp); +void cgroup_stat_show_cputime(struct seq_file *seq); void cgroup_stat_boot(void); /* |