summaryrefslogtreecommitdiffstats
path: root/kernel/softirq.c
diff options
context:
space:
mode:
authorBoris Burkov <boris@bur.io>2020-05-27 14:43:19 -0700
committerTejun Heo <tj@kernel.org>2020-05-28 10:06:35 -0400
commit936f2a70f2077f64fab1dcb3eca71879e82ecd3f (patch)
tree7a649b1c8e4776ddbada58db00a69b56b9433942 /kernel/softirq.c
parent6b6ebb34744b21467aa01be7c53cc570fc41f70d (diff)
downloadlinux-936f2a70f2077f64fab1dcb3eca71879e82ecd3f.tar.gz
linux-936f2a70f2077f64fab1dcb3eca71879e82ecd3f.tar.bz2
linux-936f2a70f2077f64fab1dcb3eca71879e82ecd3f.zip
cgroup: add cpu.stat file to root cgroup
Currently, the root cgroup does not have a cpu.stat file. Add one which is consistent with /proc/stat to capture global cpu statistics that might not fall under cgroup accounting. We haven't done this in the past because the data are already presented in /proc/stat and we didn't want to add overhead from collecting root cgroup stats when cgroups are configured, but no cgroups have been created. By keeping the data consistent with /proc/stat, I think we avoid the first problem, while improving the usability of cgroups stats. We avoid the second problem by computing the contents of cpu.stat from existing data collected for /proc/stat anyway. Signed-off-by: Boris Burkov <boris@bur.io> Suggested-by: Tejun Heo <tj@kernel.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/softirq.c')
0 files changed, 0 insertions, 0 deletions