No description
Find a file
Cyrill Gorcunov 485c4b50d1 show: Rework show procedure
Added

 - ability to parse every single file crtools
   understands via magic number

 - dumped memory pages can be rendered in two
   modes -- as a simple set of pages' virtual addresses
   or in hexdummp fashion (via -c command line key).

For example

  ./crtools -s -c -f pages-2557.img

CR_FD_PAGES: pages-2557.img
----------------------------------------
    7fffb44ace20: 00 00 00 00 00 00 00 00  00 00 00 74 65 73 74 2f  |. . . . . . . .  . . . t e s t / |
    7fffb44ace30: 74 65 73 74 2d 73 69 67  61 63 74 69 6f 6e 00 48  |t e s t - s i g  a c t i o n . H |
    7fffb44ace40: 4f 53 54 4e 41 4d 45 3d  6c 6f 63 61 6c 68 6f 73  |O S T N A M E =  l o c a l h o s |
    7fffb44ace50: 74 2e 6c 6f 63 61 6c 64  6f 6d 61 69 6e 00 54 45  |t . l o c a l d  o m a i n . T E |

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-12-05 15:59:01 +04:00
include show: Rework show procedure 2011-12-05 15:59:01 +04:00
kernel kernel: Drop no longer needed CLONE_CHILD_USEPID functionality 2011-12-01 18:51:56 +04:00
test test: Add sigaction test 2011-12-03 01:48:57 +04:00
.gitignore Add crtools into gitignore 2011-09-29 16:04:04 +04:00
COPYING Add COPYING file 2011-12-05 14:11:05 +04:00
cr-dump.c show: Rework show procedure 2011-12-05 15:59:01 +04:00
cr-restore.c Don't use standard descriptors for logging 2011-12-05 12:07:52 +04:00
cr-show.c show: Rework show procedure 2011-12-05 15:59:01 +04:00
crtools.c show: Rework show procedure 2011-12-05 15:59:01 +04:00
gen-offsets.sh Initial commit 2011-09-23 12:00:45 +04:00
INTERNALS docs: Add internals details 2011-11-22 16:48:57 +04:00
Makefile cleanup: Drop elf references 2011-11-13 13:07:00 +04:00
parasite-syscall.c Fix potential memory leak in parasite_dump_sigacts_seized 2011-11-30 23:44:15 +04:00
parasite.c dump,restore: Use rt_sigaction_t for sys_sigaction 2011-12-03 17:24:05 +04:00
parasite.lds.S Initial commit 2011-09-23 12:00:45 +04:00
README Update README 2011-12-01 11:16:37 +04:00
restorer.c PROT_WRITE isn't need for a mapping of a file with MAP_SHARED 2011-12-02 15:43:48 +04:00
seize.c Move seize related functions into seize.[ch] 2011-10-13 19:18:43 +04:00
TODO Update TODO 2011-11-22 14:36:00 +04:00
util.c Don't use standard descriptors for logging 2011-12-05 12:07:52 +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)

Kernel patching
===============

To have crtools up and running either 

1) use patches from kernel/ directory
2) or clone git://github.com/cyrillos/linux-2.6.git
   and switch to branch "crtools". Note these patches
   are guaranteed to be up to date only with major
   release of crtool. If you're testing development
   version -- make sure you're applying series from
   kernel/ directory.

It's based on Linux

 | commit 1ea6b8f48918282bdca0b32a34095504ee65bab5
 | Author: Linus Torvalds <torvalds@linux-foundation.org>
 | Date:   Mon Nov 7 16:16:02 2011 -0800
 |
 |   Linux 3.2-rc1

The following patches are already in -mm tree

fs-proc-Make-proc_get_link-to-use-dentry
fs-proc-Introduce-the-proc-pid-map_files-directory
procfs-introduce-the-proc-pid-map_files-directory-checkpatch
sysfs-add-kernel.ns_last_pid