[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] add perfcounter of dom0vp_phystomach and dom0vp_machtophys



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 0c7e58ba4fbd48dae1d51aa80384db25d1eb57b7
# Parent  ce9816c14040d1dadf16a315a782e6e17e760c45
[IA64] add perfcounter of dom0vp_phystomach and dom0vp_machtophys

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/dom0_ops.c      |    2 ++
 xen/include/asm-ia64/perfc_defn.h |    4 ++++
 2 files changed, 6 insertions(+)

diff -r ce9816c14040 -r 0c7e58ba4fbd xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Mon Oct 02 21:37:39 2006 -0600
+++ b/xen/arch/ia64/xen/dom0_ops.c      Mon Oct 02 21:39:44 2006 -0600
@@ -256,6 +256,7 @@ do_dom0vp_op(unsigned long cmd,
         } else {
             ret = (ret & _PFN_MASK) >> PAGE_SHIFT;//XXX pte_pfn()
         }
+        perfc_incrc(dom0vp_phystomach);
         break;
     case IA64_DOM0VP_machtophys:
         if (!mfn_valid(arg0)) {
@@ -263,6 +264,7 @@ do_dom0vp_op(unsigned long cmd,
             break;
         }
         ret = get_gpfn_from_mfn(arg0);
+        perfc_incrc(dom0vp_machtophys);
         break;
     case IA64_DOM0VP_zap_physmap:
         ret = dom0vp_zap_physmap(d, arg0, (unsigned int)arg1);
diff -r ce9816c14040 -r 0c7e58ba4fbd xen/include/asm-ia64/perfc_defn.h
--- a/xen/include/asm-ia64/perfc_defn.h Mon Oct 02 21:37:39 2006 -0600
+++ b/xen/include/asm-ia64/perfc_defn.h Mon Oct 02 21:39:44 2006 -0600
@@ -130,3 +130,7 @@ PERFCOUNTER_CPU(guest_physmap_add_page, 
 PERFCOUNTER_CPU(guest_physmap_add_page,         "guest_physmap_add_page")
 PERFCOUNTER_CPU(guest_physmap_remove_page,      "guest_physmap_remove_page")
 PERFCOUNTER_CPU(domain_page_flush,              "domain_page_flush")
+
+// dom0vp
+PERFCOUNTER_CPU(dom0vp_phystomach,              "dom0vp_phystomach")
+PERFCOUNTER_CPU(dom0vp_machtophys,              "dom0vp_machtophys")

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.