Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 167:981acd1db6af
Separate UCC recording from VMS core and put it into SSR plugin
| author | Nina Engelhardt |
|---|---|
| date | Mon, 05 Dec 2011 18:59:48 +0100 |
| parents | aefd87f9d12f |
| children | 3bd35fc83c61 |
comparison
equal
deleted
inserted
replaced
| 75:9c79d1d050fc | 76:4f973c62584e |
|---|---|
| 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" | |
| 21 #include "loop.h" | 20 #include "loop.h" |
| 22 | 21 |
| 23 #include <pthread.h> | 22 #include <pthread.h> |
| 24 #include <sys/time.h> | 23 #include <sys/time.h> |
| 25 | 24 |
| 75 //For code that calculates normalization-offset between TSC counts of | 74 //For code that calculates normalization-offset between TSC counts of |
| 76 // different cores. | 75 // different cores. |
| 77 //#define NUM_TSC_ROUND_TRIPS 10 | 76 //#define NUM_TSC_ROUND_TRIPS 10 |
| 78 | 77 |
| 79 #define MEAS__PERF_COUNTERS | 78 #define MEAS__PERF_COUNTERS |
| 80 #define DETECT_DEPENDENCIES | 79 #define OBSERVE_UCC |
| 81 #define DETECT_LOOP_GRAPH | 80 #define DETECT_LOOP_GRAPH |
| 82 | 81 |
| 83 //========================= Hardware related Constants ===================== | 82 //========================= Hardware related Constants ===================== |
| 84 //This value is the number of hardware threads in the shared memory | 83 //This value is the number of hardware threads in the shared memory |
| 85 // machine | 84 // machine |
| 214 PrivDynArrayInfo* counter_history_array_info; | 213 PrivDynArrayInfo* counter_history_array_info; |
| 215 #endif | 214 #endif |
| 216 //======================================== | 215 //======================================== |
| 217 | 216 |
| 218 float64 createPtInSecs; //have space but don't use on some configs | 217 float64 createPtInSecs; //have space but don't use on some configs |
| 218 int numTimesScheduled; //defines units together w/ procrID | |
| 219 }; | 219 }; |
| 220 //VirtProcr | 220 //VirtProcr |
| 221 | 221 |
| 222 | 222 |
| 223 /*WARNING: re-arranging this data structure could cause VP-switching | 223 /*WARNING: re-arranging this data structure could cause VP-switching |
| 271 #endif | 271 #endif |
| 272 #ifdef MEAS__PERF_COUNTERS | 272 #ifdef MEAS__PERF_COUNTERS |
| 273 int cycles_counter_fd[NUM_CORES]; | 273 int cycles_counter_fd[NUM_CORES]; |
| 274 int instrs_counter_fd[NUM_CORES]; | 274 int instrs_counter_fd[NUM_CORES]; |
| 275 FILE* counteroutput; | 275 FILE* counteroutput; |
| 276 #endif | |
| 277 #ifdef DETECT_DEPENDENCIES | |
| 278 Dependency** dependencies; | |
| 279 PrivDynArrayInfo* dependenciesInfo; | |
| 280 #endif | 276 #endif |
| 281 #ifdef MEAS__PERF_COUNTERS // | 277 #ifdef MEAS__PERF_COUNTERS // |
| 282 CounterRecord** counter_history; | 278 CounterRecord** counter_history; |
| 283 PrivDynArrayInfo* counter_history_array_info; | 279 PrivDynArrayInfo* counter_history_array_info; |
| 284 #endif | 280 #endif |
