comparison VMS.c @ 69:11bfe9d136ed

removed warnings
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 11 May 2011 16:13:24 +0200
parents 9c3107044f86
children f9b60012fd74 5ff1631c26ed
comparison
equal deleted inserted replaced
35:ec9c8646ad7f 36:053256974df1
116 "plugin high time hist"); 116 "plugin high time hist");
117 #endif 117 #endif
118 //======================================================================== 118 //========================================================================
119 119
120 //===================== Only VMS__malloc after this ==================== 120 //===================== Only VMS__malloc after this ====================
121 masterEnv = _VMSMasterEnv; 121 masterEnv = (MasterEnv*)_VMSMasterEnv;
122 122
123 //Make a readyToAnimateQ for each core loop 123 //Make a readyToAnimateQ for each core loop
124 readyToAnimateQs = VMS__malloc( NUM_CORES * sizeof(VMSQueueStruc *) ); 124 readyToAnimateQs = VMS__malloc( NUM_CORES * sizeof(VMSQueueStruc *) );
125 masterVPs = VMS__malloc( NUM_CORES * sizeof(VirtProcr *) ); 125 masterVPs = VMS__malloc( NUM_CORES * sizeof(VirtProcr *) );
126 126
151 151
152 152
153 //============================= MEASUREMENT STUFF ======================== 153 //============================= MEASUREMENT STUFF ========================
154 #ifdef STATS__TURN_ON_PROBES 154 #ifdef STATS__TURN_ON_PROBES
155 _VMSMasterEnv->dynIntervalProbesInfo = 155 _VMSMasterEnv->dynIntervalProbesInfo =
156 makePrivDynArrayOfSize( &(_VMSMasterEnv->intervalProbes), 200); 156 makePrivDynArrayOfSize( (void***)&(_VMSMasterEnv->intervalProbes), 200);
157 157
158 _VMSMasterEnv->probeNameHashTbl = makeHashTable( 1000, &VMS__free ); 158 _VMSMasterEnv->probeNameHashTbl = makeHashTable( 1000, &VMS__free );
159 159
160 //put creation time directly into master env, for fast retrieval 160 //put creation time directly into master env, for fast retrieval
161 struct timeval timeStamp; 161 struct timeval timeStamp;
765 int coreIdx; 765 int coreIdx;
766 VirtProcr **masterVPs; 766 VirtProcr **masterVPs;
767 SchedSlot ***allSchedSlots; //ptr to array of ptrs 767 SchedSlot ***allSchedSlots; //ptr to array of ptrs
768 768
769 //Before getting rid of everything, print out any measurements made 769 //Before getting rid of everything, print out any measurements made
770 forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &printHist ); 770 forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&printHist );
771 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt ); 771 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt );
772 #ifdef MEAS__TIME_PLUGIN 772 #ifdef MEAS__TIME_PLUGIN
773 printHist( _VMSMasterEnv->reqHdlrLowTimeHist ); 773 printHist( _VMSMasterEnv->reqHdlrLowTimeHist );
774 printHist( _VMSMasterEnv->reqHdlrHighTimeHist ); 774 printHist( _VMSMasterEnv->reqHdlrHighTimeHist );
775 freeHistExt( _VMSMasterEnv->reqHdlrLowTimeHist ); 775 freeHistExt( _VMSMasterEnv->reqHdlrLowTimeHist );
847 * the error message. 847 * the error message.
848 */ 848 */
849 void 849 void
850 VMS__throw_exception( char *msgStr, VirtProcr *reqstPr, VMSExcp *excpData ) 850 VMS__throw_exception( char *msgStr, VirtProcr *reqstPr, VMSExcp *excpData )
851 { 851 {
852 printf(msgStr); 852 printf("%s",msgStr);
853 fflush(stdin); 853 fflush(stdin);
854 exit(1); 854 exit(1);
855 } 855 }
856 856