.git: Add vdso01 and pdeath_sig into gitignore

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
rst: Include criu/include/ptrace.h instead of system one

On ARM some PTRACE_... constants are not declared in sys/ptrace.h file.
They are in linux/ptrace.h, but on x86 this file somewhat conflicts with
the sys/ one. For now fix ARM compilation by using criu/ one and think
of it later.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Remove unused ARGS variable

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Rename $args into $gen_args

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Introduce $cpt_args

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Introduce per-test criu options

Some tests require custom options for dump and restore. Instead
of hard-coding test names into zdth.sh, introduce the $test.opts
file from which zdtm would pick the needed options.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
test/meme-snap: remove an nonexistent target

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
test: add a script for jenkins to execute non-zdtm tests

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Factor out getting pid of test

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Don't build test for the 2nd time

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Factor out starting the test via Makefule

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Pick up some tests that pass

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
cgroup: rename controller_entry to cg_member_entry
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. 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 and
attempts to restore any peroperties they had. Then the tasks are restored into
their respective cgroups via cg_sets as usual.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
fixes from review
better mkdirpat implementation
remove bad log message
more review fixes