• Andrey Vagin's avatar
    mm: rework of dumping shared memory · e869c16d
    Andrey Vagin authored
    vma_entry contains shmid and all shared memory are dumped in own files.
    The most interesting thing is restore.
    A maping is restored by process with the smallest pid. The mamping
    is created before executing restorer.
    We map a full mapping and restore it's conten, then we open a file from
    /proc/pid/map_files and store a descriptor in vma_info. The mapping is
    unmaped. Now we can map any region of this mapping in the restorer.
    
    We use this trick, because a target process may have this mapping in
    some places and the restorer has not function to open proc files.
    
    v2: fix error hangling
    xemul: Fixed static-s and args for cr_dump_shmem
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    e869c16d
Name
Last commit
Last update
Documentation Loading commit data...
include Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
README Loading commit data...
cr-check.c Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
file-ids.c Loading commit data...
files.c Loading commit data...
gen-offsets.sh Loading commit data...
ipc_ns.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
proc_parse.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
restorer-log.c Loading commit data...
restorer.c Loading commit data...
restorer.lds.S Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...