criu/test
Tycho Andersen 51876eea5d Attempt to restore cgroups
During the dump phase, /proc/cgroups is parsed to find co-mounted cgroups.
Then, for each task /proc/self/cgroup is parsed for the cgroups that it is a
member of, and that cgroup is traversed to find any child cgroups which may
also need restoring. Any cgroups not currently mounted will be temporarily
mounted and traversed. All of this information is persisted along with the
original cg_sets, which indicate which cgroups a task is a member of.

On restore, an initial phase creates all the cgroups which were saved. Tasks
are then restored into these cgroups via cg_sets as usual.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-07-10 17:00:28 +04:00
..
app-emu test/*Makefile: add/append PHONY targets 2014-01-11 09:12:35 +04:00
bers test: bers -- Initial commit 2014-03-18 11:57:12 +04:00
ext-links test/ext-links: fix path to the ip tool 2014-06-24 22:50:17 +04:00
fault-injection test: check, that parasite can rollback itself (v2) 2013-08-06 15:11:12 +04:00
jenkins jenkins/btrfs: exclude inotify_irmap 2014-07-08 19:18:39 +04:00
libcriu test: Test how criu_dump_iters from library works 2014-06-27 14:29:56 +04:00
mem-snap test/meme-snap: remove an nonexistent target 2014-07-02 12:13:11 +04:00
mounts test: add mounts/ext in the "other" list 2014-07-03 19:21:20 +04:00
rpc test: add a target to execute non-zdtm tests 2014-06-24 22:50:43 +04:00
tcp test: add a target to execute non-zdtm tests 2014-06-24 22:50:43 +04:00
unix-callback test: add a target to execute non-zdtm tests 2014-06-24 22:50:43 +04:00
zdtm Attempt to restore cgroups 2014-07-10 17:00:28 +04:00
.gitignore git: add /dev to test/.gitignore 2014-06-24 22:44:42 +04:00
app-emu.sh test: add a script for executing all app-emu test cases 2012-11-22 19:08:29 +04:00
env.sh test: create env.sh for environment setting 2013-08-20 14:52:34 +04:00
functions.sh test/app-emu: wait while tasks are dying before starting restore 2012-11-22 19:08:14 +04:00
Makefile test: add mounts/ext in the "other" list 2014-07-03 19:21:20 +04:00
maps.py zdtm: check that a process has the same set of VMS-s after restore 2013-09-23 15:23:12 +04:00
post-dump.sh zdtm: the post-dump scripts returns zero, if action is not post-dump 2013-07-24 19:10:49 +04:00
zdtm.sh Attempt to restore cgroups 2014-07-10 17:00:28 +04:00