]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
xenpaging: print page-in/page-out progress
authorKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 10:32:59 +0000 (10:32 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 10:32:59 +0000 (10:32 +0000)
Now that DPRINTF is triggered only when the environment variable
XENPAGING_DEBUG is found, make such a debug session actually useful by
printing the entire page-out/page-in process. The 'Got event from Xen'
message alone is not helpful.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
tools/xenpaging/xenpaging.c

index dc49dce2e476ae685e6744809c6e47d265d05eb4..01a67ae24e28771b0be020e5635025db7e5027e3 100644 (file)
@@ -387,6 +387,7 @@ int xenpaging_evict_page(xenpaging_t *paging,
         goto out;
     }
 
+    DPRINTF("evict_page > gfn %lx pageslot %d\n", victim->gfn, i);
     /* Notify policy of page being paged out */
     policy_notify_paged_out(victim->gfn);
 
@@ -427,6 +428,7 @@ static int xenpaging_populate_page(xenpaging_t *paging,
     unsigned char oom = 0;
 
     _gfn = *gfn;
+    DPRINTF("populate_page < gfn %lx pageslot %d\n", _gfn, i);
     do
     {
         /* Tell Xen to allocate a page for the domain */