Commit 1fe795c5 authored by Pavel Emelyanov's avatar Pavel Emelyanov

restorer: Print debug when calling mmap-s on new mappings

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3246f239
...@@ -285,6 +285,9 @@ static u64 restore_mapping(const VmaEntry *vma_entry) ...@@ -285,6 +285,9 @@ static u64 restore_mapping(const VmaEntry *vma_entry)
if (vma_entry->fd == -1 || !(vma_entry->flags & MAP_SHARED)) if (vma_entry->fd == -1 || !(vma_entry->flags & MAP_SHARED))
prot |= PROT_WRITE; prot |= PROT_WRITE;
pr_debug("\tmmap(%lx -> %lx, %x %x %d\n",
vma_entry->start, vma_entry->end,
prot, flags, (int)vma_entry->fd);
/* /*
* Should map memory here. Note we map them as * Should map memory here. Note we map them as
* writable since we're going to restore page * writable since we're going to restore page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment