[systemd-devel] [PATCH v2 2/4] cgroup: show MemoryHierarchy in cgroup_context_dump
Gao feng
gaofeng at cn.fujitsu.com
Sun Sep 22 23:30:52 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 68615c3..362b074 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -92,6 +92,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