ia64/xen-unstable

changeset 4626:8ae284c9743c

bitkeeper revision 1.1360 (4267fb9cE5_cr52xAcYJVAIQ7vYIzg)

Added SH_VVVLOG, rather than #if 0, for useful but incredibly verbose shadow mode debugging hook

Signed-off-by: michael.fetterman@cl.cam.ac.uk
author maf46@burn.cl.cam.ac.uk
date Thu Apr 21 19:14:36 2005 +0000 (2005-04-21)
parents 43d58d3eeaa5
children b18e67c57942
files xen/include/asm-x86/shadow.h
line diff
     1.1 --- a/xen/include/asm-x86/shadow.h	Thu Apr 21 19:13:59 2005 +0000
     1.2 +++ b/xen/include/asm-x86/shadow.h	Thu Apr 21 19:14:36 2005 +0000
     1.3 @@ -227,6 +227,7 @@ struct out_of_sync_entry {
     1.4  #define SHADOW_DEBUG 0
     1.5  #define SHADOW_VERBOSE_DEBUG 0
     1.6  #define SHADOW_VVERBOSE_DEBUG 0
     1.7 +#define SHADOW_VVVERBOSE_DEBUG 0
     1.8  #define SHADOW_HASH_DEBUG 0
     1.9  #define FULLSHADOW_DEBUG 0
    1.10  
    1.11 @@ -258,6 +259,14 @@ extern int shadow_status_noswap;
    1.12  #define SH_VVLOG(_f, _a...)
    1.13  #endif
    1.14  
    1.15 +#if SHADOW_VVVERBOSE_DEBUG
    1.16 +#define SH_VVVLOG(_f, _a...)                                            \
    1.17 +    printk("DOM%uP%u: SH_VVVLOG(%d): " _f "\n",                         \
    1.18 +           current->domain->id, current->processor, __LINE__ , ## _a )
    1.19 +#else
    1.20 +#define SH_VVVLOG(_f, _a...)
    1.21 +#endif
    1.22 +
    1.23  #if FULLSHADOW_DEBUG
    1.24  #define FSH_LOG(_f, _a...)                                              \
    1.25      printk("DOM%uP%u: FSH_LOG(%d): " _f "\n",                           \
    1.26 @@ -661,11 +670,9 @@ static inline void l1pte_propagate_from_
    1.27          }
    1.28      }
    1.29  
    1.30 -#if 0
    1.31      if ( l1e_get_value(spte) || l1e_get_value(gpte) )
    1.32 -        SH_VVLOG("%s: gpte=%p, new spte=%p",
    1.33 -                 __func__, l1e_get_value(gpte), l1e_get_value(spte));
    1.34 -#endif
    1.35 +        SH_VVVLOG("%s: gpte=%p, new spte=%p",
    1.36 +                  __func__, l1e_get_value(gpte), l1e_get_value(spte));
    1.37  
    1.38      *spte_p = spte;
    1.39  }