aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-01-11 10:32:59 +0000
committerKeir Fraser <keir@xen.org>2011-01-11 10:32:59 +0000
commit58097363efc2d53ff5e7379e18955a75679e27eb (patch)
treee3643cff70218b38e1604f96dc1782fa9a67a9be
parent86ef532d290b9cc9db1950d4d01c0f7a3fe3e0af (diff)
downloadxen-58097363efc2d53ff5e7379e18955a75679e27eb.tar.gz
xen-58097363efc2d53ff5e7379e18955a75679e27eb.tar.bz2
xen-58097363efc2d53ff5e7379e18955a75679e27eb.zip
xenpaging: print page-in/page-out progress
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>
-rw-r--r--tools/xenpaging/xenpaging.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c
index dc49dce2e4..01a67ae24e 100644
--- a/tools/xenpaging/xenpaging.c
+++ b/tools/xenpaging/xenpaging.c
@@ -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 */