Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison MasterLoop.c @ 187:fe5ad5726e36
counters working ...sort of
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 03 Feb 2012 17:32:48 +0100 |
| parents | 69eb54ce9c4b |
| children | 20358f56e498 |
comparison
equal
deleted
inserted
replaced
| 52:c30f289e28fe | 53:97c66f26e96b |
|---|---|
| 150 #ifdef MEAS__TIME_PLUGIN | 150 #ifdef MEAS__TIME_PLUGIN |
| 151 int32 startStamp1, endStamp1; | 151 int32 startStamp1, endStamp1; |
| 152 saveLowTimeStampCountInto( startStamp1 ); | 152 saveLowTimeStampCountInto( startStamp1 ); |
| 153 #endif | 153 #endif |
| 154 #ifdef MEAS__PERF_COUNTERS | 154 #ifdef MEAS__PERF_COUNTERS |
| 155 VirtProcr p_sav = *(currSlot->procrAssignedToSlot); | |
| 155 uint64 cycles, instrs; | 156 uint64 cycles, instrs; |
| 156 saveCyclesAndInstrs(thisCoresIdx,cycles, instrs); | 157 saveCyclesAndInstrs(thisCoresIdx,cycles, instrs); |
| 157 //(*counterHandler)(MasterLoop_beforeReqHdlr,currSlot->procrAssignedToSlot,cycles,instrs); | 158 (*counterHandler)(MasterLoop_beforeReqHdlr,&p_sav,cycles,instrs); |
| 158 #endif | 159 #endif |
| 159 //============================================================ | 160 //============================================================ |
| 160 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); | 161 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); |
| 161 //====================== MEASUREMENT STUFF =================== | 162 //====================== MEASUREMENT STUFF =================== |
| 162 #ifdef MEAS__TIME_PLUGIN | 163 #ifdef MEAS__TIME_PLUGIN |
| 168 #endif | 169 #endif |
| 169 #ifdef MEAS__PERF_COUNTERS | 170 #ifdef MEAS__PERF_COUNTERS |
| 170 //done with constraints check | 171 //done with constraints check |
| 171 uint64 cycles2,instrs2; | 172 uint64 cycles2,instrs2; |
| 172 saveCyclesAndInstrs(thisCoresIdx,cycles2, instrs2); | 173 saveCyclesAndInstrs(thisCoresIdx,cycles2, instrs2); |
| 173 (*counterHandler)(MasterLoop_afterReqHdlr,currSlot->procrAssignedToSlot,cycles2,instrs2); | 174 (*counterHandler)(MasterLoop_afterReqHdlr,&p_sav,cycles2,instrs2); |
| 174 #endif | 175 #endif |
| 175 //============================================================ | 176 //============================================================ |
| 176 } | 177 } |
| 177 if( currSlot->needsProcrAssigned ) | 178 if( currSlot->needsProcrAssigned ) |
| 178 { //give slot a new virt procr | 179 { //give slot a new virt procr |
