debuggers.hg

changeset 22748:c89a28b70b62

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>
author Keir Fraser <keir@xen.org>
date Tue Jan 11 10:32:59 2011 +0000 (2011-01-11)
parents af807bf09d1f
children 611e46390bf6
files tools/xenpaging/xenpaging.c
line diff
     1.1 --- a/tools/xenpaging/xenpaging.c	Tue Jan 11 10:32:32 2011 +0000
     1.2 +++ b/tools/xenpaging/xenpaging.c	Tue Jan 11 10:32:59 2011 +0000
     1.3 @@ -387,6 +387,7 @@ int xenpaging_evict_page(xenpaging_t *pa
     1.4          goto out;
     1.5      }
     1.6  
     1.7 +    DPRINTF("evict_page > gfn %lx pageslot %d\n", victim->gfn, i);
     1.8      /* Notify policy of page being paged out */
     1.9      policy_notify_paged_out(victim->gfn);
    1.10  
    1.11 @@ -427,6 +428,7 @@ static int xenpaging_populate_page(xenpa
    1.12      unsigned char oom = 0;
    1.13  
    1.14      _gfn = *gfn;
    1.15 +    DPRINTF("populate_page < gfn %lx pageslot %d\n", _gfn, i);
    1.16      do
    1.17      {
    1.18          /* Tell Xen to allocate a page for the domain */