No description
Find a file
Pavel Emelyanov 433c46625e dump: Snapshot memory
It's quite simple -- get parent's pagemap before dumping memory,
then collect _full_ pagemap of task putting holes into page-pipe
when the page is (soft-dirty-clear && in-parent-map). At the end
reset task's soft-dirty bits.

This requires kernel support from
http://comments.gmane.org/gmane.linux.kernel.mm/98283

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-04-12 19:45:18 +04:00
arch parasite: Use struct pid on parasite_ctl 2013-04-08 17:56:48 +04:00
Documentation docs: crtools -- Use bold format for parameters 2013-02-18 18:42:07 +04:00
include cr: Preparations for snapshot 2013-04-12 19:45:15 +04:00
pie tcp: Restore creds after turning off tcp repair mode 2013-04-11 21:39:50 +04:00
protobuf cr: Preparations for snapshot 2013-04-12 19:45:15 +04:00
scripts make: Provide mandatory options in cflags-y variable 2013-02-23 00:36:36 +04:00
test zdtm: add fanotify00 in the default list 2013-04-11 22:06:55 +04:00
.gitignore make: pie -- Switch to a new scheme 2013-02-18 18:10:45 +04:00
.mailmap repo: Add mailmap file 2012-03-25 23:31:20 +04:00
COPYING Add LGPL licence for library directory 2013-04-01 12:29:06 +04:00
cr-check.c check: Drop \n from pr_perror 2013-04-10 00:55:24 +04:00
cr-dump.c cr-dump: collect mount points in the target namespace 2013-04-11 22:06:48 +04:00
cr-exec.c vma: Introduce list-of-vmas object 2013-03-01 20:11:51 +04:00
cr-restore.c page-read: New abstraction for restoring pages 2013-04-12 19:45:12 +04:00
cr-show.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
CREDITS Add the CREDITS file 2012-07-30 13:52:37 +04:00
crtools.c cr: Preparations for snapshot 2013-04-12 19:45:15 +04:00
eventfd.c cr: generalized format strings 2013-01-16 19:20:08 +04:00
eventpoll.c cr: generalized format strings 2013-01-16 19:20:08 +04:00
fifo.c files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
file-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
file-lock.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
files-reg.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
files.c files: Print unsupported files' mode in %o format 2013-04-11 18:56:11 +04:00
fsnotify.c fsnotify: Don't fail on old versions where no inotify/fanotify image present 2013-01-17 19:20:41 +04:00
image.c cr: Preparations for snapshot 2013-04-12 19:45:15 +04:00
ipc_ns.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
kcmp-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
libnetlink.c netlink: return errno from do_rtnl_req 2013-03-28 18:21:11 +04:00
log.c log: Add generic __print_on_level helper 2013-01-14 14:26:18 +04:00
Makefile make: Don't generate tags/cscope for tools/ and test/ 2013-04-04 14:08:32 +04:00
Makefile.crtools page-read: New abstraction for restoring pages 2013-04-12 19:45:12 +04:00
mem.c dump: Snapshot memory 2013-04-12 19:45:18 +04:00
mount.c cr-dump: collect mount points in the target namespace 2013-04-11 22:06:48 +04:00
namespaces.c namespaces: close fd on the source netns in restore_ns 2013-04-05 08:22:36 +04:00
net.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
netfilter.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
page-pipe.c page-pipe: Support holes in page-pipe iov map 2013-04-12 19:45:07 +04:00
page-read.c page-read: New abstraction for restoring pages 2013-04-12 19:45:12 +04:00
page-xfer.c dump: Snapshot memory 2013-04-12 19:45:18 +04:00
parasite-syscall.c parasite: fix error paths in parasite_init 2013-04-11 19:57:46 +04:00
pipes.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
proc_parse.c mount: free all parts of mnt entries 2013-04-10 01:26:59 +04:00
protobuf.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
pstree.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
ptrace.c seize: Warn if crtools tried to seize self 2013-03-27 01:10:56 +04:00
rbtree.c code: Fix spaced indentation where found 2012-08-11 21:36:03 +04:00
README Drop kernel patching from README 2012-01-29 16:26:36 +04:00
shmem.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
signalfd.c files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
sk-inet.c tcp: Schedule tcp socket for repair-off with proper fd 2013-04-11 21:10:37 +04:00
sk-netlink.c sk-netlink: typo fix for unconnected netlink sockets 2013-03-30 00:18:29 +04:00
sk-packet.c sk-packet: fix memory leak 2013-04-10 00:56:29 +04:00
sk-queue.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
sk-tcp.c tcp: Schedule tcp socket for repair-off with proper fd 2013-04-11 21:10:37 +04:00
sk-unix.c unix: Add _all_ peers into must-dump list 2013-04-02 23:27:45 +04:00
sockets.c sockets: free all allocated objected in case of any error 2013-04-04 14:00:25 +04:00
sysctl.c sysctl: Don't forget to close fds 2013-04-05 08:23:17 +04:00
tty.c tty: More descriptive log message about --shell-job requirement 2013-03-27 20:11:00 +04:00
util.c util: read_fd_link -- Drop redundant \n in pr_perror message 2013-04-10 01:23:15 +04:00
uts_ns.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00

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)