From: Matt Mullins Date: Sat, 21 Sep 2013 04:13:47 +0000 (-0700) Subject: Print the addresses allocated X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=6498be585e96c56da720a29886aa5393b781d265;p=mmap_everything.git Print the addresses allocated I like looking at /proc/maps to see what this did! --- diff --git a/mmap_everything.c b/mmap_everything.c index bc52ec6..2e9c7c3 100644 --- a/mmap_everything.c +++ b/mmap_everything.c @@ -24,6 +24,7 @@ int main() { p = mmap(0, size, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (p != MAP_FAILED) { allocated[bit]++; + printf("mmap'ed 2**%zu bytes at %p\n", bit, p); } else { break; }