• Pavel Emelyanov's avatar
    dump: Stop using mincore and switch to /proc/pid/pagemap · 52242be3
    Pavel Emelyanov authored
    We use mincore to check which pages we should take with us into
    the image. The anonymour present or swapped should go, file present
    but not cow-ed should not.
    
    The mincore syscall wasn't very helpful with this -- it didn't detect
    swap, but did detect some non present pages (pagecache). Plus it
    didn't know anything about cow-ing filemaps.
    
    Andrey Morton suggested to use the pagemap file in proc, but it lacked
    the importaint stuff -- the cow filemap bit. Now it's there and we
    can switch to using it.
    
    The mincore usage for shared memory is still there, as for _that_ case
    it's correct.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    52242be3
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...
.mailmap Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
Makefile.pie Loading commit data...
Makefile.syscall 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...
kcmp-ids.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
netfilter.c Loading commit data...
parasite-head-x86-64.S Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
pie.lds.S Loading commit data...
pipes.c 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...
sk-inet.c Loading commit data...
sk-queue.c Loading commit data...
sk-tcp.c Loading commit data...
sk-unix.c Loading commit data...
sockets.c Loading commit data...
syscall-common-x86-64.S Loading commit data...
syscalls-x86-64.sh 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...