ia64/xen-unstable

changeset 847:39d0706234b7

bitkeeper revision 1.526 (3f8f4139NGtfXYTOvQIloULmYg2ktg)

Add a couple of software performance counters to the page table update routines.
author iap10@labyrinth.cl.cam.ac.uk
date Fri Oct 17 01:09:13 2003 +0000 (2003-10-17)
parents a0dc1607eee5
children 6eeb43baba4b 78052a1d23cf
files xen/common/memory.c xen/include/xeno/perfc_defn.h
line diff
     1.1 --- a/xen/common/memory.c	Fri Oct 17 01:07:33 2003 +0000
     1.2 +++ b/xen/common/memory.c	Fri Oct 17 01:09:13 2003 +0000
     1.3 @@ -809,8 +809,12 @@ int do_process_page_updates(page_update_
     1.4      unsigned int cmd;
     1.5      unsigned long cr0 = 0;
     1.6  
     1.7 +    perfc_incrc( calls_to_process_page_updates ); 
     1.8 +    perfc_addc( num_page_updates, count );
     1.9 +
    1.10      for ( i = 0; i < count; i++ )
    1.11      {
    1.12 +
    1.13          if ( unlikely(copy_from_user(&req, ureqs, sizeof(req)) != 0) )
    1.14          {
    1.15              if ( cr0 != 0 ) write_cr0(cr0);
     2.1 --- a/xen/include/xeno/perfc_defn.h	Fri Oct 17 01:07:33 2003 +0000
     2.2 +++ b/xen/include/xeno/perfc_defn.h	Fri Oct 17 01:09:13 2003 +0000
     2.3 @@ -17,3 +17,9 @@ PERFCOUNTER( net_tx_transmitted, "net tx
     2.4  
     2.5  PERFCOUNTER_CPU( domain_page_tlb_flush, "domain page tlb flushes" )
     2.6  PERFCOUNTER_CPU( need_flush_tlb_flush, "PG_need_flush tlb flushes" )
     2.7 +
     2.8 +PERFCOUNTER_CPU( calls_to_process_page_updates, "calls_to_process_page_updates" )
     2.9 +PERFCOUNTER_CPU( num_page_updates, "num_page_updates" )
    2.10 +
    2.11 +
    2.12 +