# HG changeset patch # User Nina Engelhardt # Date 1313427259 -7200 # Node ID fac1d896f6e911e02840a7d4562ef58bf56ac75c # Parent b1817e2451b1bada18a72012ebcb69e0917647b6 fixed: incomplete initialization of first record in vp diff -r b1817e2451b1 -r fac1d896f6e9 Counters/Counters.c --- a/Counters/Counters.c Fri Aug 05 18:03:07 2011 +0200 +++ b/Counters/Counters.c Mon Aug 15 18:54:19 2011 +0200 @@ -11,6 +11,7 @@ printf("Work+comm started:\t%lu cycles, %lu instrs [Core %d]\n",record->start_work_cycles,record->start_work_instrs,record->work_core); printf("Work+comm ended:\t%lu cycles, %lu instrs [Core %d]\n",record->suspend_cycles,record->suspend_instrs,record->work_core); printf("Status request read:\t%lu cycles, %lu instrs [Core %d]\n",record->req_cycles,record->req_instrs,record->req_core); + fflush(stdin); } void print_record_csv(CounterRecord* record) { @@ -23,6 +24,7 @@ printf("%d,%lu,%lu,",record->work_core,record->suspend_cycles,record->suspend_instrs); printf("%d,%lu,%lu,",record->req_core,record->req_cycles,record->req_instrs); printf("%u,%u\n",record->blocked_timestamp,record->unblocked_timestamp); + fflush(stdin); } void print_record_csv_to_file(CounterRecord* record, FILE* file) { diff -r b1817e2451b1 -r fac1d896f6e9 MasterLoop.c --- a/MasterLoop.c Fri Aug 05 18:03:07 2011 +0200 +++ b/MasterLoop.c Mon Aug 15 18:54:19 2011 +0200 @@ -155,6 +155,7 @@ //End of task, start of next task //print counters from last run print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput); + print_record_human_readable(lastRecord); //create new entry in record array CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); newRecord->req_core = thisCoresIdx; diff -r b1817e2451b1 -r fac1d896f6e9 ProcrContext.c --- a/ProcrContext.c Fri Aug 05 18:03:07 2011 +0200 +++ b/ProcrContext.c Mon Aug 15 18:54:19 2011 +0200 @@ -64,6 +64,8 @@ newPr->counter_history_array_info = makePrivDynArrayInfoFrom(&(newPr->counter_history),10); CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); newRecord->task_position = 0; + newRecord->vp_id = newPr->procrID; + newRecord->addr_of_libcall_for_req = fnPtr; addToDynArray( (void*) newRecord, newPr->counter_history_array_info); #endif //======================================================================== diff -r b1817e2451b1 -r fac1d896f6e9 VMS.h --- a/VMS.h Fri Aug 05 18:03:07 2011 +0200 +++ b/VMS.h Mon Aug 15 18:54:19 2011 +0200 @@ -41,7 +41,7 @@ #define dbgAppFlow TRUE /* Top level flow of application code -- general*/ #define dbgProbes FALSE /* for issues inside probes themselves*/ #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/ -#define dbgRqstHdlr FALSE /* in request handler code*/ +#define dbgRqstHdlr TRUE /* in request handler code*/ //Comment or un- the substitute half to turn on/off types of debug message #define DEBUG( bool, msg) \