projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dde52d5
)
snapshot: debugging - show the snapshot regions that are added
author
Brian Norris
<banorris@uci.edu>
Fri, 19 Apr 2013 22:20:18 +0000
(15:20 -0700)
committer
Brian Norris
<banorris@uci.edu>
Fri, 19 Apr 2013 22:20:18 +0000
(15:20 -0700)
snapshot.cc
patch
|
blob
|
history
diff --git
a/snapshot.cc
b/snapshot.cc
index 56bdeb1c4a0756899aa368412b969808e76f8c8a..66faacd8e445510f57c7714ce9ccd60a1ee95f3c 100644
(file)
--- a/
snapshot.cc
+++ b/
snapshot.cc
@@
-190,6
+190,9
@@
static void mprot_add_to_snapshot(void *addr, unsigned int numPages)
exit(EXIT_FAILURE);
}
+ DEBUG("snapshot region %p-%p (%u page%s)\n",
+ addr, (char *)addr + numPages * PAGESIZE, numPages,
+ numPages > 1 ? "s" : "");
mprot_snap->regionsToSnapShot[memoryregion].basePtr = addr;
mprot_snap->regionsToSnapShot[memoryregion].sizeInPages = numPages;
}