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

[Xen-changelog] Add debug output for pfmon (default off, DEBUG_PFMON in config.h)



# HG changeset patch
# User djm@xxxxxxxxxxxxxxx
# Node ID 8d133d172bfdd1321a852ee70f316289f676ed47
# Parent  0e548ff36960d7a25e5d4b4b6ed3d4a08afe5bd5
Add debug output for pfmon (default off, DEBUG_PFMON in config.h)

diff -r 0e548ff36960 -r 8d133d172bfd xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Sun Sep 18 16:30:57 2005
+++ b/xen/arch/ia64/xen/vcpu.c  Sun Sep 18 18:18:57 2005
@@ -1453,6 +1453,9 @@
 {
        // TODO: Should set Logical CPU state, not just physical
        // NOTE: Writes to unimplemented PMC registers are discarded
+#ifdef DEBUG_PFMON
+printf("vcpu_set_pmc(%x,%lx)\n",reg,val);
+#endif
        ia64_set_pmc(reg,val);
        return (IA64_NO_FAULT);
 }
@@ -1461,6 +1464,9 @@
 {
        // TODO: Should set Logical CPU state, not just physical
        // NOTE: Writes to unimplemented PMD registers are discarded
+#ifdef DEBUG_PFMON
+printf("vcpu_set_pmd(%x,%lx)\n",reg,val);
+#endif
        ia64_set_pmd(reg,val);
        return (IA64_NO_FAULT);
 }
@@ -1469,6 +1475,9 @@
 {
        // NOTE: Reads from unimplemented PMC registers return zero
        UINT64 val = (UINT64)ia64_get_pmc(reg);
+#ifdef DEBUG_PFMON
+printf("%lx=vcpu_get_pmc(%x)\n",val,reg);
+#endif
        *pval = val;
        return (IA64_NO_FAULT);
 }
@@ -1477,6 +1486,9 @@
 {
        // NOTE: Reads from unimplemented PMD registers return zero
        UINT64 val = (UINT64)ia64_get_pmd(reg);
+#ifdef DEBUG_PFMON
+printf("%lx=vcpu_get_pmd(%x)\n",val,reg);
+#endif
        *pval = val;
        return (IA64_NO_FAULT);
 }
diff -r 0e548ff36960 -r 8d133d172bfd xen/include/asm-ia64/config.h
--- a/xen/include/asm-ia64/config.h     Sun Sep 18 16:30:57 2005
+++ b/xen/include/asm-ia64/config.h     Sun Sep 18 18:18:57 2005
@@ -8,6 +8,8 @@
 #define DOMU_BUILD_STAGING
 #define VHPT_GLOBAL
 #define DOMU_AUTO_RESTART
+
+#undef DEBUG_PFMON
 
 // manufactured from component pieces
 

_______________________________________________
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®.