diff MasterLoop.c @ 110:724c7a0b687f

save counters to file in csv
author Nina Engelhardt
date Wed, 03 Aug 2011 17:05:18 +0200
parents 659299627e70
children b1817e2451b1
line diff
     1.1 --- a/MasterLoop.c	Tue Aug 02 17:16:12 2011 +0200
     1.2 +++ b/MasterLoop.c	Wed Aug 03 17:05:18 2011 +0200
     1.3 @@ -154,11 +154,12 @@
     1.4                 saveCyclesAndInstrs(thisCoresIdx,lastRecord->req_cycles,lastRecord->req_instrs);
     1.5                 //End of task, start of next task
     1.6                 //print counters from last run
     1.7 -               print_record(lastRecord);
     1.8 +               print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput);
     1.9                 //create new entry in record array
    1.10                 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord));
    1.11                 newRecord->req_core = thisCoresIdx;
    1.12                 newRecord->vp_id = currSlot->procrAssignedToSlot->procrID;
    1.13 +               getReturnAddressBeforeLibraryCall(currSlot->procrAssignedToSlot, &(newRecord->addr_of_libcall_for_req));
    1.14                 addToDynArray( (void*) newRecord, currSlot->procrAssignedToSlot->counter_history_array_info);
    1.15                 lastRecord = newRecord;
    1.16                 #endif