direct-io.hg

changeset 11951:0c7e58ba4fbd

[IA64] add perfcounter of dom0vp_phystomach and dom0vp_machtophys

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Mon Oct 02 21:39:44 2006 -0600 (2006-10-02)
parents ce9816c14040
children 5727c3c4070e
files xen/arch/ia64/xen/dom0_ops.c xen/include/asm-ia64/perfc_defn.h
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Mon Oct 02 21:37:39 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Mon Oct 02 21:39:44 2006 -0600
     1.3 @@ -256,6 +256,7 @@ do_dom0vp_op(unsigned long cmd,
     1.4          } else {
     1.5              ret = (ret & _PFN_MASK) >> PAGE_SHIFT;//XXX pte_pfn()
     1.6          }
     1.7 +        perfc_incrc(dom0vp_phystomach);
     1.8          break;
     1.9      case IA64_DOM0VP_machtophys:
    1.10          if (!mfn_valid(arg0)) {
    1.11 @@ -263,6 +264,7 @@ do_dom0vp_op(unsigned long cmd,
    1.12              break;
    1.13          }
    1.14          ret = get_gpfn_from_mfn(arg0);
    1.15 +        perfc_incrc(dom0vp_machtophys);
    1.16          break;
    1.17      case IA64_DOM0VP_zap_physmap:
    1.18          ret = dom0vp_zap_physmap(d, arg0, (unsigned int)arg1);
     2.1 --- a/xen/include/asm-ia64/perfc_defn.h	Mon Oct 02 21:37:39 2006 -0600
     2.2 +++ b/xen/include/asm-ia64/perfc_defn.h	Mon Oct 02 21:39:44 2006 -0600
     2.3 @@ -130,3 +130,7 @@ PERFCOUNTER_CPU(steal_page,             
     2.4  PERFCOUNTER_CPU(guest_physmap_add_page,         "guest_physmap_add_page")
     2.5  PERFCOUNTER_CPU(guest_physmap_remove_page,      "guest_physmap_remove_page")
     2.6  PERFCOUNTER_CPU(domain_page_flush,              "domain_page_flush")
     2.7 +
     2.8 +// dom0vp
     2.9 +PERFCOUNTER_CPU(dom0vp_phystomach,              "dom0vp_phystomach")
    2.10 +PERFCOUNTER_CPU(dom0vp_machtophys,              "dom0vp_machtophys")