No description
Find a file
Alexander Kartashov 03a9c6b0b7 parasite-syscall: use the ptrace requests PTRACE_(GET|SET)REGSET to retrieve and set CPU registers
This patch introduces the routines ptrace_get_gpregs() and ptrace_set_gpregs()
that wrap the ptrace interface to get and set CPU registers respectively.
The motivation is to make the CRIU code be compatible with architectures that
don't support the PTRACE_GETREGS and PTRACE_SETREGS ptrace calls ---
the requests PTRACE_GETREGSET and PTRACE_SETREGSET are implemented instead.

Signed-off-by: Alexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-11-01 14:26:27 +04:00
arch parasite: Introduce thread_ctx structure 2013-10-30 16:49:22 +04:00
Documentation docs: Document -R|--leave-running option 2013-11-01 13:36:12 +04:00
include parasite-syscall: use the ptrace requests PTRACE_(GET|SET)REGSET to retrieve and set CPU registers 2013-11-01 14:26:27 +04:00
lib version: Define version as a macro 2013-09-14 15:00:17 +04:00
pie restorer: Add missing closing brace in print 2013-10-31 20:01:11 +04:00
protobuf protobuf: Add EXTLINK netdevice type 2013-10-10 15:12:06 +04:00
scripts build: Move pie/gen-offsets.sh into scripts/ 2013-10-15 11:30:41 +04:00
test test: rpc: fix log_level in test.c and add log_level to test.py 2013-10-14 13:21:22 +04:00
.gitignore git: Don't track *.so files 2013-08-29 14:48:17 +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: Soft-dirty support is upstream since v3.11 2013-09-03 14:21:11 +04:00
cr-dump.c dump: Don't forget to cleanup link remap if needed 2013-11-01 13:36:07 +04:00
cr-exec.c exec: Add support for return-arguments 2013-06-08 00:37:05 +04:00
cr-restore.c restore: Don't unmap vdso proxy on final cleanup 2013-10-30 16:30:57 +04:00
cr-service.c service: reinit opts in cr_service_work() 2013-10-31 20:00:31 +04:00
cr-show.c show: Don't print out-of-buffer-range symbols 2013-09-19 13:30:12 +04:00
CREDITS Add the CREDITS file 2012-07-30 13:52:37 +04:00
crtools crtools: rename binary to criu 2013-04-30 20:17:55 +04:00
crtools.c crtools: add init_opts() 2013-10-31 20:00:04 +04:00
eventfd.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
eventpoll.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
fifo.c collect: Shorten common images collecting code 2013-08-21 03:52:18 +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 Fix typos in log messages 2013-04-15 12:46:25 +04:00
files-reg.c dump: Don't forget to cleanup link remap if needed 2013-11-01 13:36:07 +04:00
files.c util: Introduce buffer size for carrying /proc/self/fd/N path 2013-10-15 13:59:59 +04:00
fsnotify.c util: Introduce buffer size for carrying /proc/self/fd/N path 2013-10-15 13:59:59 +04:00
image-desc.c net: Save and restore iptables in net namespace 2013-10-04 02:51:33 +04:00
image.c fdset: Beautify fdset opening 2013-09-28 05:39:52 +04:00
ipc_ns.c fdset: Beautify fdset opening 2013-09-28 05:39:52 +04:00
kcmp-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
kerndat.c rst: Read sys.last_cap only once in kerndat 2013-10-12 00:03:25 +04:00
libnetlink.c netlink: Lower netlink error report log level 2013-07-04 15:49:02 +04:00
log.c v2 crtools: write pidfile, when service/page server is run as daemon and "--pidfile" is set 2013-09-16 15:45:01 +04:00
Makefile criu: Version 0.8 release 2013-10-18 20:45:08 +04:00
Makefile.config Add strlcpy helper 2013-08-28 19:06:43 +04:00
Makefile.crtools build: Move protobuf-desc-gen.sh into scripts/ 2013-10-15 11:26:45 +04:00
Makefile.inc Makefiles: add install target 2013-05-03 01:56:30 +04:00
mem.c parasite: Rename ack-waiting function to look better 2013-07-17 08:56:17 +04:00
mount.c util: Introduce buffer size for carrying /proc/self/fd/N path 2013-10-15 13:59:59 +04:00
namespaces.c fdset: Beautify fdset opening 2013-09-28 05:39:52 +04:00
net.c tcp: disable repair mode for sockets on rollback (v2) 2013-10-31 20:12:55 +04:00
netfilter.c iptables: use cr_system instead of system 2013-10-02 20:09:37 +04:00
page-pipe.c page-pipe: fixed format strings 2013-04-30 18:31:34 +04:00
page-read.c page-read: print errno in case of failure 2013-08-28 17:00:17 +04:00
page-xfer.c v2 crtools: write pidfile, when service/page server is run as daemon and "--pidfile" is set 2013-09-16 15:45:01 +04:00
parasite-syscall.c parasite-syscall: use the ptrace requests PTRACE_(GET|SET)REGSET to retrieve and set CPU registers 2013-11-01 14:26:27 +04:00
pipes.c util: Introduce buffer size for carrying /proc/self/fd/N path 2013-10-15 13:59:59 +04:00
proc_parse.c proc: parse -- Fix length for smaps maj/min parshing 2013-10-14 13:20:35 +04:00
protobuf-desc.c build: Generate most of the pb-desc automatically 2013-08-23 21:47:31 +04:00
protobuf.c show: Compact output of zeroes in long repeated fields 2013-10-17 14:48:05 +04:00
pstree.c rst: Introduce fine-grained pgid-restore synchronization 2013-09-27 04:38:00 +04:00
ptrace.c crtoools: add support of stopped tasks (v2) 2013-10-01 11:21:34 +04:00
rbtree.c code: Fix spaced indentation where found 2012-08-11 21:36:03 +04:00
README README: crtools to criu rename 2013-05-10 11:02:02 +04:00
security.c security: Don't allow non-root user to dump or restore any caps bits 2013-10-17 14:27:00 +04:00
shmem.c rst: Formalize the shared resource restore order 2013-08-29 08:07:15 +04:00
sigframe.c restore: Add restoration of alternative signal stack 2013-07-10 17:31:12 +04:00
signalfd.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
sk-inet.c inet: Improve messaging in can_dump_inet_sk error paths 2013-10-10 11:27:51 +04:00
sk-netlink.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
sk-packet.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
sk-queue.c v2 fix data loss when dumping semi-closed unix stream connection. 2013-08-28 16:52:17 +04:00
sk-tcp.c tcp: disable repair mode for sockets on rollback (v2) 2013-10-31 20:12:55 +04:00
sk-unix.c unix: Increase verbosity of "can't dump this socket" check 2013-10-10 11:17:42 +04:00
sockets.c sockets: don't double buffer size for sockets 2013-09-17 22:46:55 +04:00
stats.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
string.c Add strlcpy helper 2013-08-28 19:06:43 +04:00
sysctl.c sysctl: Don't forget to close fds 2013-04-05 08:23:17 +04:00
tty.c show: Replace one-line show_foo calls with args array 2013-08-24 04:00:32 +04:00
tun.c tun: Use shorter name for ifr_name 2013-09-10 12:01:28 +04:00
util.c util: Make set_proc_mountpoint static 2013-08-11 20:02:33 +04:00
uts_ns.c uts: don't use global fdset for dumping namespace 2013-10-01 12:10:57 +04:00

criu
====

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)