mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-04 15:53:44 +00:00
No description
blcrcheckpointcontainercontainerscriudmtcphighly-availablelinuxmemory-trackingmigrationparasitepost-copyrestoresnapshotsuspenduserfaultfdzero-downtime
Sometime we need sync points in testee program flow,
for this reason task_waiter_ introduced.
The call semantics is the following
Parent Child
------ -----
task_waiter_init
task_waiter_wait4
task_waiter_complete
task_waiter_wait4
task_waiter_complete
...
Thus initially task_waiter_init should be called
to initialize all internals guts needed.
Then one become waitee and calls for task_waiter_wait4,
where lockid should be provided as an argument. Since
it should be unique values the best option might be
gettid().
The same applies to a waiter side -- it should call
for task_waiter_complete and provide a lockid.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Andrey Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
|
||
|---|---|---|
| Documentation | ||
| include | ||
| test | ||
| tools | ||
| .gitignore | ||
| .mailmap | ||
| COPYING | ||
| cr-check.c | ||
| cr-dump.c | ||
| cr-restore.c | ||
| cr-show.c | ||
| crtools.c | ||
| eventfd.c | ||
| eventpoll.c | ||
| file-ids.c | ||
| files-reg.c | ||
| files.c | ||
| gen-offsets.sh | ||
| inotify.c | ||
| ipc_ns.c | ||
| kcmp-ids.c | ||
| libnetlink.c | ||
| log.c | ||
| Makefile | ||
| Makefile.inc | ||
| Makefile.pie | ||
| Makefile.syscall | ||
| mount.c | ||
| namespaces.c | ||
| netfilter.c | ||
| parasite-head-x86-64.S | ||
| parasite-syscall.c | ||
| parasite.c | ||
| pie.lds.S | ||
| pipes.c | ||
| proc_parse.c | ||
| ptrace.c | ||
| rbtree.c | ||
| README | ||
| restorer-log.c | ||
| restorer.c | ||
| shmem.c | ||
| sk-inet.c | ||
| sk-queue.c | ||
| sk-tcp.c | ||
| sk-unix.c | ||
| sockets.c | ||
| syscall-common-x86-64.S | ||
| syscalls-x86-64.sh | ||
| sysctl.c | ||
| util-net.c | ||
| util.c | ||
| uts_ns.c | ||
crtools ======= An utility to checkpoint/restore tasks. Some code snippets are borrowed from - Linux kernel (http://kernel.org/) - git (http://git-scm.com/) - kvm-tools (https://github.com/penberg/linux-kvm) - ptrace-parasite (https://code.google.com/p/ptrace-parasite/) Many thanks to these projects. Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)