[CRIU] [RFC 0/2] cgroups: Support dynamic controller properties

Cyrill Gorcunov gorcunov at openvz.org
Thu Apr 2 00:14:30 PDT 2015


While been working on another project I found that for custom kernels
we don't provide an ability to c/r non-standart cgroup properties.

Here we implement dynamic support of cgroup properties: one can
pass --cgroup-props option where all entries needed are described
in json format and CRIU will dump them.

Note for parsing json we use Jansson library but it's compilation
dependant: if there is no such library found on the system the feature
get simply not supported.

Cyrill Gorcunov (2):
  cgroup: properties -- Move properties handling into separate file
  cgroup: Add ability to dump custom cgroup properties

 Makefile.config           |   8 ++
 Makefile.crtools          |   1 +
 cgroup-props.c            | 300 ++++++++++++++++++++++++++++++++++++++++++++++
 cgroup.c                  |  87 +-------------
 cr-dump.c                 |   6 +
 crtools.c                 |   5 +
 include/cgroup-props.h    |  16 +++
 include/cr_options.h      |   1 +
 scripts/feature-tests.mak |  26 ++++
 9 files changed, 368 insertions(+), 82 deletions(-)
 create mode 100644 cgroup-props.c
 create mode 100644 include/cgroup-props.h

-- 
1.9.3



More information about the CRIU mailing list