diff options
| author | Paul Mackerras <paulus@samba.org> | 2008-05-09 06:12:06 -0400 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2008-05-09 06:12:06 -0400 |
| commit | 2a5f2e3e6cd1ce9fb3f8b186b6bc9aa1f1497a92 (patch) | |
| tree | b2306840f227972a7c9d4a2b75e516fe81358ce8 /kernel/cgroup_debug.c | |
| parent | 02539d71fa98d5737bb668b02286c76241e4bac9 (diff) | |
| parent | 78be76476a34a77f0ea9db2f78ba46a2b0fd5ab5 (diff) | |
Merge branch 'for-2.6.26' of master.kernel.org:/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx into merge
Diffstat (limited to 'kernel/cgroup_debug.c')
| -rw-r--r-- | kernel/cgroup_debug.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/kernel/cgroup_debug.c b/kernel/cgroup_debug.c index 37301e877cb0..c3dc3aba4c02 100644 --- a/kernel/cgroup_debug.c +++ b/kernel/cgroup_debug.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * kernel/ccontainer_debug.c - Example cgroup subsystem that | 2 | * kernel/cgroup_debug.c - Example cgroup subsystem that |
| 3 | * exposes debug info | 3 | * exposes debug info |
| 4 | * | 4 | * |
| 5 | * Copyright (C) Google Inc, 2007 | 5 | * Copyright (C) Google Inc, 2007 |
| @@ -62,25 +62,35 @@ static u64 current_css_set_refcount_read(struct cgroup *cont, | |||
| 62 | return count; | 62 | return count; |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | static u64 releasable_read(struct cgroup *cgrp, struct cftype *cft) | ||
| 66 | { | ||
| 67 | return test_bit(CGRP_RELEASABLE, &cgrp->flags); | ||
| 68 | } | ||
| 69 | |||
| 65 | static struct cftype files[] = { | 70 | static struct cftype files[] = { |
| 66 | { | 71 | { |
| 67 | .name = "cgroup_refcount", | 72 | .name = "cgroup_refcount", |
| 68 | .read_uint = cgroup_refcount_read, | 73 | .read_u64 = cgroup_refcount_read, |
| 69 | }, | 74 | }, |
| 70 | { | 75 | { |
| 71 | .name = "taskcount", | 76 | .name = "taskcount", |
| 72 | .read_uint = taskcount_read, | 77 | .read_u64 = taskcount_read, |
| 73 | }, | 78 | }, |
| 74 | 79 | ||
| 75 | { | 80 | { |
| 76 | .name = "current_css_set", | 81 | .name = "current_css_set", |
| 77 | .read_uint = current_css_set_read, | 82 | .read_u64 = current_css_set_read, |
| 78 | }, | 83 | }, |
| 79 | 84 | ||
| 80 | { | 85 | { |
| 81 | .name = "current_css_set_refcount", | 86 | .name = "current_css_set_refcount", |
| 82 | .read_uint = current_css_set_refcount_read, | 87 | .read_u64 = current_css_set_refcount_read, |
| 83 | }, | 88 | }, |
| 89 | |||
| 90 | { | ||
| 91 | .name = "releasable", | ||
| 92 | .read_u64 = releasable_read, | ||
| 93 | } | ||
| 84 | }; | 94 | }; |
| 85 | 95 | ||
| 86 | static int debug_populate(struct cgroup_subsys *ss, struct cgroup *cont) | 96 | static int debug_populate(struct cgroup_subsys *ss, struct cgroup *cont) |
