From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 04/12] xenpaging: print page-in/page-out progress Date: Mon, 10 Jan 2011 17:43:49 +0100 Message-ID: <20110110164347.069903765@aepfle.de> References: <20110110164345.521919826@aepfle.de> Return-path: Content-Disposition: inline; filename=xen-unstable.xenpaging.print-pageout-pagein-progress.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 --- tools/xenpaging/xenpaging.c | 2 ++ 1 file changed, 2 insertions(+) --- xen-unstable.hg-4.1.22571.orig/tools/xenpaging/xenpaging.c +++ xen-unstable.hg-4.1.22571/tools/xenpaging/xenpaging.c @@ -387,6 +387,7 @@ int xenpaging_evict_page(xenpaging_t *pa 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(xenpa 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 */