diff VMS.h @ 129:ce02441b77cf

dependency tracking
author Nina Engelhardt
date Mon, 29 Aug 2011 19:12:06 +0200
parents 73fc5aafbe45
children 395f58384a5c
line diff
     1.1 --- a/VMS.h	Wed Aug 24 16:07:38 2011 +0200
     1.2 +++ b/VMS.h	Mon Aug 29 19:12:06 2011 +0200
     1.3 @@ -17,6 +17,7 @@
     1.4  #include "Hash_impl/PrivateHash.h"
     1.5  #include "vmalloc.h"
     1.6  #include "Counters/Counters.h"
     1.7 +#include "dependency.h"
     1.8  
     1.9  #include <pthread.h>
    1.10  #include <sys/time.h>
    1.11 @@ -38,10 +39,11 @@
    1.12  
    1.13  //These defines turn types of bug messages on and off
    1.14  // be sure debug messages are un-commented (next block of defines)
    1.15 -#define dbgAppFlow   TRUE /* Top level flow of application code -- general*/
    1.16 +#define dbgAppFlow   FALSE /* Top level flow of application code -- general*/
    1.17  #define dbgProbes    FALSE /* for issues inside probes themselves*/
    1.18  #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/
    1.19 -#define dbgRqstHdlr  TRUE /* in request handler code*/
    1.20 +#define dbgRqstHdlr  FALSE /* in request handler code*/
    1.21 +#define dbgDependency TRUE /* in request handler code, print dependencies */
    1.22  
    1.23  //Comment or un- the substitute half to turn on/off types of debug message
    1.24  #define DEBUG(  bool, msg)         \
    1.25 @@ -74,6 +76,7 @@
    1.26  //#define NUM_TSC_ROUND_TRIPS 10
    1.27  
    1.28  #define MEAS__PERF_COUNTERS
    1.29 +#define DETECT_DEPENDENCIES
    1.30  
    1.31  //=========================  Hardware related Constants =====================
    1.32     //This value is the number of hardware threads in the shared memory
    1.33 @@ -269,6 +272,10 @@
    1.34     int instrs_counter_fd[NUM_CORES];
    1.35     FILE* counteroutput;
    1.36     #endif
    1.37 +   #ifdef DETECT_DEPENDENCIES
    1.38 +   Dependency** dependencies;
    1.39 +   PrivDynArrayInfo* dependenciesInfo;
    1.40 +   #endif
    1.41   }
    1.42  MasterEnv;
    1.43