Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
changeset 112:fac1d896f6e9 perf_counters
fixed: incomplete initialization of first record in vp
| author | Nina Engelhardt |
|---|---|
| date | Mon, 15 Aug 2011 18:54:19 +0200 |
| parents | b1817e2451b1 |
| children | 43ea731da94e |
| files | Counters/Counters.c MasterLoop.c ProcrContext.c VMS.h |
| diffstat | 4 files changed, 6 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/Counters/Counters.c Fri Aug 05 18:03:07 2011 +0200 1.2 +++ b/Counters/Counters.c Mon Aug 15 18:54:19 2011 +0200 1.3 @@ -11,6 +11,7 @@ 1.4 printf("Work+comm started:\t%lu cycles, %lu instrs [Core %d]\n",record->start_work_cycles,record->start_work_instrs,record->work_core); 1.5 printf("Work+comm ended:\t%lu cycles, %lu instrs [Core %d]\n",record->suspend_cycles,record->suspend_instrs,record->work_core); 1.6 printf("Status request read:\t%lu cycles, %lu instrs [Core %d]\n",record->req_cycles,record->req_instrs,record->req_core); 1.7 + fflush(stdin); 1.8 } 1.9 1.10 void print_record_csv(CounterRecord* record) { 1.11 @@ -23,6 +24,7 @@ 1.12 printf("%d,%lu,%lu,",record->work_core,record->suspend_cycles,record->suspend_instrs); 1.13 printf("%d,%lu,%lu,",record->req_core,record->req_cycles,record->req_instrs); 1.14 printf("%u,%u\n",record->blocked_timestamp,record->unblocked_timestamp); 1.15 + fflush(stdin); 1.16 } 1.17 1.18 void print_record_csv_to_file(CounterRecord* record, FILE* file) {
2.1 --- a/MasterLoop.c Fri Aug 05 18:03:07 2011 +0200 2.2 +++ b/MasterLoop.c Mon Aug 15 18:54:19 2011 +0200 2.3 @@ -155,6 +155,7 @@ 2.4 //End of task, start of next task 2.5 //print counters from last run 2.6 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput); 2.7 + print_record_human_readable(lastRecord); 2.8 //create new entry in record array 2.9 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); 2.10 newRecord->req_core = thisCoresIdx;
3.1 --- a/ProcrContext.c Fri Aug 05 18:03:07 2011 +0200 3.2 +++ b/ProcrContext.c Mon Aug 15 18:54:19 2011 +0200 3.3 @@ -64,6 +64,8 @@ 3.4 newPr->counter_history_array_info = makePrivDynArrayInfoFrom(&(newPr->counter_history),10); 3.5 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); 3.6 newRecord->task_position = 0; 3.7 + newRecord->vp_id = newPr->procrID; 3.8 + newRecord->addr_of_libcall_for_req = fnPtr; 3.9 addToDynArray( (void*) newRecord, newPr->counter_history_array_info); 3.10 #endif 3.11 //========================================================================
4.1 --- a/VMS.h Fri Aug 05 18:03:07 2011 +0200 4.2 +++ b/VMS.h Mon Aug 15 18:54:19 2011 +0200 4.3 @@ -41,7 +41,7 @@ 4.4 #define dbgAppFlow TRUE /* Top level flow of application code -- general*/ 4.5 #define dbgProbes FALSE /* for issues inside probes themselves*/ 4.6 #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/ 4.7 -#define dbgRqstHdlr FALSE /* in request handler code*/ 4.8 +#define dbgRqstHdlr TRUE /* in request handler code*/ 4.9 4.10 //Comment or un- the substitute half to turn on/off types of debug message 4.11 #define DEBUG( bool, msg) \
