Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff VMS.h @ 47:72373405c816
Adding TSC normalization -- still in progress, not working
| author | Me |
|---|---|
| date | Sat, 16 Oct 2010 04:11:15 -0700 |
| parents | 5388f1c2da6f |
| children | 054006c26b92 |
line diff
1.1 --- a/VMS.h Thu Oct 14 17:07:23 2010 -0700 1.2 +++ b/VMS.h Sat Oct 16 04:11:15 2010 -0700 1.3 @@ -7,7 +7,7 @@ 1.4 */ 1.5 1.6 #ifndef _VMS_H 1.7 -#define _VMS_H 1.8 +#define _VMS_H 1.9 #define __USE_GNU 1.10 1.11 #include "VMS_primitive_data_types.h" 1.12 @@ -56,10 +56,10 @@ 1.13 1.14 #define SUCCESS 0 1.15 1.16 -#define writeVMSQ writeCASQ 1.17 -#define readVMSQ readCASQ 1.18 -#define makeVMSQ makeCASQ 1.19 -#define VMSQueueStruc CASQueueStruc 1.20 +#define writeVMSQ writeSRSWQ 1.21 +#define readVMSQ readSRSWQ 1.22 +#define makeVMSQ makeSRSWQ 1.23 +#define VMSQueueStruc SRSWQueueStruc 1.24 1.25 //#define thdAttrs NULL //For PThreads 1.26 1.27 @@ -146,7 +146,7 @@ 1.28 RequestHandler requestHandler; 1.29 1.30 SchedSlot ***allSchedSlots; 1.31 - SRSWQueueStruc **readyToAnimateQs; 1.32 + VMSQueueStruc **readyToAnimateQs; 1.33 VirtProcr **masterVPs; 1.34 1.35 void *semanticEnv; 1.36 @@ -179,6 +179,7 @@ 1.37 1.38 volatile MasterEnv *_VMSMasterEnv; 1.39 1.40 + 1.41 //========================== 1.42 void 1.43 VMS__init(); 1.44 @@ -244,6 +245,13 @@ 1.45 void 1.46 VMS__cleanup_after_shutdown(); 1.47 1.48 +//========================== 1.49 +void 1.50 +measureTSCOffsetsAsCore0(); 1.51 + 1.52 +void 1.53 +measureTSCOffsetsAsRemoteCore( int coreIdx ); 1.54 + 1.55 //============================= Statistics ================================== 1.56 1.57 typedef unsigned long long TSCount; 1.58 @@ -269,11 +277,17 @@ 1.59 /* clobber */ : "%eax", "%edx" \ 1.60 ); 1.61 1.62 -inline TSCount getTSCount(); 1.63 +inline TSCount getTSC(); 1.64 + 1.65 +inline TSCount getTSC(); 1.66 1.67 //===================== Debug ========================== 1.68 int numProcrsCreated; 1.69 1.70 1.71 +int *pongNums; 1.72 +TSCount *pongTimes; 1.73 +TSCount *pingTimes; 1.74 + 1.75 #endif /* _VMS_H */ 1.76
