Commit f81d009a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restore: Add debug info on premapped VMA address

| Map 0x0000000000400000-0x00000000004a5000 0x0000000000000000 vma
| 	premap 0x0000000000400000-0x00000000004a5000 -> 00007f26eb898000
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6140f673
......@@ -251,6 +251,8 @@ static int map_private_vma(pid_t pid, struct vma_area *vma, void *tgt_addr,
}
vma_premmaped_start(&(vma->vma)) = (unsigned long) addr;
pr_debug("\tpremap 0x%016"PRIx64"-0x%016"PRIx64" -> %016lx\n",
vma->vma.start, vma->vma.end, (unsigned long)addr);
if (vma_entry_is(&vma->vma, VMA_FILE_PRIVATE))
close(vma->vma.fd);
......
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