2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

restore: Add debug info on premapped VMA address

| Map 0x0000000000400000-0x00000000004a5000 0x0000000000000000 vma
| 	premap 0x0000000000400000-0x00000000004a5000 -> 00007f26eb898000

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2013-03-25 14:48:31 +04:00 committed by Pavel Emelyanov
parent 6140f67326
commit f81d009af8

View File

@ -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);