Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 129:ce02441b77cf
dependency tracking
| author | Nina Engelhardt |
|---|---|
| date | Mon, 29 Aug 2011 19:12:06 +0200 |
| parents | 73fc5aafbe45 |
| children | 395f58384a5c |
comparison
equal
deleted
inserted
replaced
| 53:bd0a4bdc8648 | 56:37fc927fc9b3 |
|---|---|
| 15 #include "Histogram/Histogram.h" | 15 #include "Histogram/Histogram.h" |
| 16 #include "DynArray/DynArray.h" | 16 #include "DynArray/DynArray.h" |
| 17 #include "Hash_impl/PrivateHash.h" | 17 #include "Hash_impl/PrivateHash.h" |
| 18 #include "vmalloc.h" | 18 #include "vmalloc.h" |
| 19 #include "Counters/Counters.h" | 19 #include "Counters/Counters.h" |
| 20 #include "dependency.h" | |
| 20 | 21 |
| 21 #include <pthread.h> | 22 #include <pthread.h> |
| 22 #include <sys/time.h> | 23 #include <sys/time.h> |
| 23 | 24 |
| 24 | 25 |
| 36 //#define STATS__ENABLE_PROBES | 37 //#define STATS__ENABLE_PROBES |
| 37 //#define TURN_ON_DEBUG_PROBES | 38 //#define TURN_ON_DEBUG_PROBES |
| 38 | 39 |
| 39 //These defines turn types of bug messages on and off | 40 //These defines turn types of bug messages on and off |
| 40 // be sure debug messages are un-commented (next block of defines) | 41 // be sure debug messages are un-commented (next block of defines) |
| 41 #define dbgAppFlow TRUE /* Top level flow of application code -- general*/ | 42 #define dbgAppFlow FALSE /* Top level flow of application code -- general*/ |
| 42 #define dbgProbes FALSE /* for issues inside probes themselves*/ | 43 #define dbgProbes FALSE /* for issues inside probes themselves*/ |
| 43 #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/ | 44 #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/ |
| 44 #define dbgRqstHdlr TRUE /* in request handler code*/ | 45 #define dbgRqstHdlr FALSE /* in request handler code*/ |
| 46 #define dbgDependency TRUE /* in request handler code, print dependencies */ | |
| 45 | 47 |
| 46 //Comment or un- the substitute half to turn on/off types of debug message | 48 //Comment or un- the substitute half to turn on/off types of debug message |
| 47 #define DEBUG( bool, msg) \ | 49 #define DEBUG( bool, msg) \ |
| 48 if( bool){ printf(msg); fflush(stdin);} | 50 if( bool){ printf(msg); fflush(stdin);} |
| 49 #define DEBUG1( bool, msg, param) \ | 51 #define DEBUG1( bool, msg, param) \ |
| 72 //For code that calculates normalization-offset between TSC counts of | 74 //For code that calculates normalization-offset between TSC counts of |
| 73 // different cores. | 75 // different cores. |
| 74 //#define NUM_TSC_ROUND_TRIPS 10 | 76 //#define NUM_TSC_ROUND_TRIPS 10 |
| 75 | 77 |
| 76 #define MEAS__PERF_COUNTERS | 78 #define MEAS__PERF_COUNTERS |
| 79 #define DETECT_DEPENDENCIES | |
| 77 | 80 |
| 78 //========================= Hardware related Constants ===================== | 81 //========================= Hardware related Constants ===================== |
| 79 //This value is the number of hardware threads in the shared memory | 82 //This value is the number of hardware threads in the shared memory |
| 80 // machine | 83 // machine |
| 81 #define NUM_CORES 2 | 84 #define NUM_CORES 2 |
| 266 #endif | 269 #endif |
| 267 #ifdef MEAS__PERF_COUNTERS | 270 #ifdef MEAS__PERF_COUNTERS |
| 268 int cycles_counter_fd[NUM_CORES]; | 271 int cycles_counter_fd[NUM_CORES]; |
| 269 int instrs_counter_fd[NUM_CORES]; | 272 int instrs_counter_fd[NUM_CORES]; |
| 270 FILE* counteroutput; | 273 FILE* counteroutput; |
| 274 #endif | |
| 275 #ifdef DETECT_DEPENDENCIES | |
| 276 Dependency** dependencies; | |
| 277 PrivDynArrayInfo* dependenciesInfo; | |
| 271 #endif | 278 #endif |
| 272 } | 279 } |
| 273 MasterEnv; | 280 MasterEnv; |
| 274 | 281 |
| 275 //========================= Extra Stuff Data Strucs ======================= | 282 //========================= Extra Stuff Data Strucs ======================= |
