From f81d009af88e33d097c5ed8dc880e2280e685746 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 25 Mar 2013 14:48:31 +0400 Subject: [PATCH] restore: Add debug info on premapped VMA address | Map 0x0000000000400000-0x00000000004a5000 0x0000000000000000 vma | premap 0x0000000000400000-0x00000000004a5000 -> 00007f26eb898000 Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- cr-restore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cr-restore.c b/cr-restore.c index 21bdbfc28..f8ed66aaa 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -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);