mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Task Control Groups: add procfs interface
Add: /proc/cgroups - general system info /proc/*/cgroup - per-task cgroup membership info [[email protected]: cgroups: bdi init hooks] Signed-off-by: Paul Menage <[email protected]> Cc: Serge E. Hallyn <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Paul Jackson <[email protected]> Cc: Kirill Korotaev <[email protected]> Cc: Herbert Poetzl <[email protected]> Cc: Srivatsa Vaddagiri <[email protected]> Cc: Cedric Le Goater <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
697f416108
commit
a424316ca1
3 changed files with 152 additions and 3 deletions
|
|
@ -67,6 +67,7 @@
|
|||
#include <linux/mount.h>
|
||||
#include <linux/security.h>
|
||||
#include <linux/ptrace.h>
|
||||
#include <linux/cgroup.h>
|
||||
#include <linux/cpuset.h>
|
||||
#include <linux/audit.h>
|
||||
#include <linux/poll.h>
|
||||
|
|
@ -2132,6 +2133,9 @@ static const struct pid_entry tgid_base_stuff[] = {
|
|||
#endif
|
||||
#ifdef CONFIG_CPUSETS
|
||||
REG("cpuset", S_IRUGO, cpuset),
|
||||
#endif
|
||||
#ifdef CONFIG_CGROUPS
|
||||
REG("cgroup", S_IRUGO, cgroup),
|
||||
#endif
|
||||
INF("oom_score", S_IRUGO, oom_score),
|
||||
REG("oom_adj", S_IRUGO|S_IWUSR, oom_adjust),
|
||||
|
|
@ -2418,6 +2422,9 @@ static const struct pid_entry tid_base_stuff[] = {
|
|||
#endif
|
||||
#ifdef CONFIG_CPUSETS
|
||||
REG("cpuset", S_IRUGO, cpuset),
|
||||
#endif
|
||||
#ifdef CONFIG_CGROUPS
|
||||
REG("cgroup", S_IRUGO, cgroup),
|
||||
#endif
|
||||
INF("oom_score", S_IRUGO, oom_score),
|
||||
REG("oom_adj", S_IRUGO|S_IWUSR, oom_adjust),
|
||||
|
|
|
|||
Loading…
Reference in a new issue