[systemd-devel] [PATCH 2/5] cgroup: show MemoryHierarchy in cgroup_context_dump
Gao feng
gaofeng at cn.fujitsu.com
Fri Sep 13 02:49:19 PDT 2013
Show MemoryHierarchy in cgroup_context_dump.
---
src/core/cgroup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 336d394..2c8aa22 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -91,6 +91,7 @@ void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix) {
"%sCPUAccounting=%s\n"
"%sBlockIOAccounting=%s\n"
"%sMemoryAccounting=%s\n"
+ "%sMemoryHierarchy=%s\n"
"%sCPUShares=%lu\n"
"%sBlockIOWeight%lu\n"
"%sMemoryLimit=%" PRIu64 "\n"
@@ -99,6 +100,7 @@ void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix) {
prefix, yes_no(c->cpu_accounting),
prefix, yes_no(c->blockio_accounting),
prefix, yes_no(c->memory_accounting),
+ prefix, yes_no(c->memory_hierarchy),
prefix, c->cpu_shares,
prefix, c->blockio_weight,
prefix, c->memory_limit,
--
1.8.3.1
More information about the systemd-devel
mailing list