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

[Xen-changelog] Added SH_VVVLOG, rather than #if 0, for useful but incredibly verbose shadow mode debugging hook



ChangeSet 1.1360, 2005/04/21 20:14:36+01:00, maf46@xxxxxxxxxxxxxxxxx

        Added SH_VVVLOG, rather than #if 0, for useful but incredibly verbose 
shadow mode debugging hook
        
        Signed-off-by: michael.fetterman@xxxxxxxxxxxx



 shadow.h |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)


diff -Nru a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
--- a/xen/include/asm-x86/shadow.h      2005-04-21 21:07:04 -04:00
+++ b/xen/include/asm-x86/shadow.h      2005-04-21 21:07:04 -04:00
@@ -227,6 +227,7 @@
 #define SHADOW_DEBUG 0
 #define SHADOW_VERBOSE_DEBUG 0
 #define SHADOW_VVERBOSE_DEBUG 0
+#define SHADOW_VVVERBOSE_DEBUG 0
 #define SHADOW_HASH_DEBUG 0
 #define FULLSHADOW_DEBUG 0
 
@@ -258,6 +259,14 @@
 #define SH_VVLOG(_f, _a...)
 #endif
 
+#if SHADOW_VVVERBOSE_DEBUG
+#define SH_VVVLOG(_f, _a...)                                            \
+    printk("DOM%uP%u: SH_VVVLOG(%d): " _f "\n",                         \
+           current->domain->id, current->processor, __LINE__ , ## _a )
+#else
+#define SH_VVVLOG(_f, _a...)
+#endif
+
 #if FULLSHADOW_DEBUG
 #define FSH_LOG(_f, _a...)                                              \
     printk("DOM%uP%u: FSH_LOG(%d): " _f "\n",                           \
@@ -661,11 +670,9 @@
         }
     }
 
-#if 0
     if ( l1e_get_value(spte) || l1e_get_value(gpte) )
-        SH_VVLOG("%s: gpte=%p, new spte=%p",
-                 __func__, l1e_get_value(gpte), l1e_get_value(spte));
-#endif
+        SH_VVVLOG("%s: gpte=%p, new spte=%p",
+                  __func__, l1e_get_value(gpte), l1e_get_value(spte));
 
     *spte_p = spte;
 }

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