aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/perfc.c
diff options
context:
space:
mode:
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>2005-08-13 20:47:47 +0000
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>2005-08-13 20:47:47 +0000
commitf34ffe2dfdd3a58cdb484870fb6c010faa82175d (patch)
tree3400d3921ebc8f096a360f097c89d48ca3bf113c /xen/common/perfc.c
parentab7d21ef3abbd4c425574e5556b6d523d8369815 (diff)
downloadxen-f34ffe2dfdd3a58cdb484870fb6c010faa82175d.tar.gz
xen-f34ffe2dfdd3a58cdb484870fb6c010faa82175d.tar.bz2
xen-f34ffe2dfdd3a58cdb484870fb6c010faa82175d.zip
Add some profiling support for writeable pagetables.
Signed-off-by: ian@xensource.com
Diffstat (limited to 'xen/common/perfc.c')
-rw-r--r--xen/common/perfc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c
index 7363fb98c7..afb9af0bfa 100644
--- a/xen/common/perfc.c
+++ b/xen/common/perfc.c
@@ -7,6 +7,7 @@
#include <xen/spinlock.h>
#include <public/dom0_ops.h>
#include <asm/uaccess.h>
+#include <xen/mm.h>
#undef PERFCOUNTER
#undef PERFCOUNTER_CPU
@@ -81,6 +82,10 @@ void perfc_printall(unsigned char key)
}
printk("\n");
}
+
+#ifdef PERF_ARRAYS
+ ptwr_eip_stat_print();
+#endif
}
void perfc_reset(unsigned char key)
@@ -118,6 +123,10 @@ void perfc_reset(unsigned char key)
break;
}
}
+
+#ifdef PERF_ARRAYS
+ ptwr_eip_stat_reset();
+#endif
}
static dom0_perfc_desc_t perfc_d[NR_PERFCTRS];