No description
Find a file
Kinsbursky Stanislav 8ce9e94705 parasite: support sockets queues
This patch adds sockets queue dump functionality. Key ideas
1) sockets info is passed as plain array in parasite args.
2) new socket option SO_PEEK_OFF with MSG_PEEK is used to read the get the
   queue's packets.
3) Buffer for packet will be allocated for each socket separately and with
   size of socket sending buffer. For stream sockets is means, that it's queue
   will be dumped in chunks of this size.

Note: loop around sys_msgrcv() is required for DGRAM sockets - sys_msgrcv()
with MSG_PEEK will return only one packet.

Based on xemul@ patches.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2012-02-29 17:42:30 +04:00
Documentation log: Add log-levels 2012-02-20 14:23:28 +04:00
include parasite: support sockets queues 2012-02-29 17:42:30 +04:00
test zdtm: static/socket_queues test added 2012-02-29 17:42:30 +04:00
tools tools: Update commit bot 2012-02-07 18:37:03 +04:00
.gitignore Update .gitignore 2012-01-19 22:00:11 +04:00
COPYING Add COPYING file 2011-12-05 14:11:05 +04:00
cr-dump.c files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
cr-restore.c restore: close opened fd 2012-02-29 14:46:42 +04:00
cr-show.c files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
crtools.c crtools: Drop pr_debug from fdset ops 2012-02-20 14:23:28 +04:00
file-ids.c files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
files.c files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
gen-offsets.sh parasite: Make sure no dots in names generated 2012-02-14 17:18:09 +04:00
ipc_ns.c IPC: message dumping updated due to mainstream STEAL logic changes 2012-02-27 19:53:41 +04:00
libnetlink.c crtools: R/W API rewrite 2012-01-23 01:43:10 +04:00
log.c log: Add log-levels 2012-02-20 14:23:28 +04:00
Makefile files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
Makefile.inc make: Eliminate deps build on no-deps targets in zdtm 2012-01-25 19:14:39 +04:00
namespaces.c IPC: show semaphores set 2012-02-15 13:33:46 +04:00
parasite-syscall.c parasite: Rename get_socket_name to gen_parasite_saddr 2012-02-22 16:59:28 +04:00
parasite.c parasite: support sockets queues 2012-02-29 17:42:30 +04:00
parasite.lds.S Initial commit 2011-09-23 12:00:45 +04:00
proc_parse.c open_proc() and friends: hide pid_dir 2012-02-17 16:46:25 +04:00
ptrace.c Rework parasite code 2012-02-16 22:05:28 +04:00
rbtree.c Add rbtree helpers 2012-02-28 19:13:47 +04:00
README Drop kernel patching from README 2012-01-29 16:26:36 +04:00
restorer-log.c restorer: move log descriptor from crtools (v2) 2012-01-17 18:08:03 +03:00
restorer.c restorer: close log file before detaching from crtools 2012-02-21 20:32:18 +04:00
restorer.lds.S restorer: isolate restorer like parasite (v4) 2012-01-17 18:08:03 +03:00
sockets.c log: Add log-levels 2012-02-20 14:23:28 +04:00
sysctl.c Add sysctl handling engine 2012-02-02 21:22:20 +04:00
util-net.c util-net: Make sure that there is real data in message 2012-02-14 17:18:09 +04:00
util.c Move pr_ helpers to log.[ch] 2012-02-20 14:23:28 +04:00
uts_ns.c uts: Don't fail on "show" if there is no data dumped 2012-02-02 21: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)