comparison MasterLoop.c @ 112:fac1d896f6e9

fixed: incomplete initialization of first record in vp
author Nina Engelhardt
date Mon, 15 Aug 2011 18:54:19 +0200
parents b1817e2451b1
children 73fc5aafbe45
comparison
equal deleted inserted replaced
29:8aaf5a0e39c2 30:48f611ab67c9
153 lastRecord->req_core = thisCoresIdx; 153 lastRecord->req_core = thisCoresIdx;
154 saveCyclesAndInstrs(thisCoresIdx,lastRecord->req_cycles,lastRecord->req_instrs); 154 saveCyclesAndInstrs(thisCoresIdx,lastRecord->req_cycles,lastRecord->req_instrs);
155 //End of task, start of next task 155 //End of task, start of next task
156 //print counters from last run 156 //print counters from last run
157 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput); 157 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput);
158 print_record_human_readable(lastRecord);
158 //create new entry in record array 159 //create new entry in record array
159 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); 160 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord));
160 newRecord->req_core = thisCoresIdx; 161 newRecord->req_core = thisCoresIdx;
161 newRecord->vp_id = currSlot->procrAssignedToSlot->procrID; 162 newRecord->vp_id = currSlot->procrAssignedToSlot->procrID;
162 newRecord->task_position = lastRecord->task_position + 1; 163 newRecord->task_position = lastRecord->task_position + 1;