WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Add debug output for pfmon (default off, DEBUG_PFMON in config.h)
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 20:02:15 +0000
Delivery-date: Thu, 22 Sep 2005 20:01:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Add debug output for pfmon (default off, DEBUG_PFMON in config.h), Xen patchbot -unstable <=