diff VMS.h @ 193:20358f56e498

fix coreloop recording bug and eliminate race condition on measurement-collecting list
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Thu, 09 Feb 2012 15:40:11 +0100
parents fe5ad5726e36
children d83f59e6e2db
line diff
     1.1 --- a/VMS.h	Fri Feb 03 17:32:48 2012 +0100
     1.2 +++ b/VMS.h	Thu Feb 09 15:40:11 2012 +0100
     1.3 @@ -86,7 +86,7 @@
     1.4  
     1.5     // tradeoff amortizing master fixed overhead vs imbalance potential
     1.6     // when work-stealing, can make bigger, at risk of losing cache affinity
     1.7 -#define NUM_SCHED_SLOTS  1
     1.8 +#define NUM_SCHED_SLOTS  5
     1.9  
    1.10  #define MIN_WORK_UNIT_CYCLES 20000
    1.11  
    1.12 @@ -129,7 +129,7 @@
    1.13  typedef void  (*VirtProcrFnPtr)  ( void *, VirtProcr * ); //initData, animPr
    1.14  typedef void    VirtProcrFn      ( void *, VirtProcr * ); //initData, animPr
    1.15  typedef void  (*ResumePrFnPtr)   ( VirtProcr *, void * );
    1.16 -typedef void (*CounterHandler) (int,VirtProcr*,uint64,uint64);
    1.17 +typedef void (*CounterHandler) (int,int,int,VirtProcr*,uint64,uint64);
    1.18  
    1.19  //============= Requests ===========
    1.20  //
    1.21 @@ -212,6 +212,8 @@
    1.22     //CounterRecord** counter_history;
    1.23     //PrivDynArrayInfo* counter_history_array_info;
    1.24     #endif
    1.25 +   int isMasterVP;
    1.26 +   int isShutdownVP;
    1.27        //========================================
    1.28     
    1.29     float64      createPtInSecs;  //have space but don't use on some configs
    1.30 @@ -443,14 +445,15 @@
    1.31  } while (0) 
    1.32  
    1.33  enum eventType {
    1.34 -    MasterLoop_beforeReqHdlr = 1,
    1.35 -    MasterLoop_afterReqHdlr,
    1.36 -    MasterLoop_beforeAssign,
    1.37 -    MasterLoop_afterAssign,
    1.38 -    CoreLoop_afterWork,
    1.39 -    CoreLoop_beforeWork,
    1.40 -    Procr_suspend,
    1.41 -    MasterLoop_beforeNextAssign
    1.42 +    DebugEvt = 0,
    1.43 +    AppResponderInvocation_start,
    1.44 +    AppResponder_start,
    1.45 +    AppResponder_end,
    1.46 +    Assigner_start,
    1.47 +    Assigner_end,
    1.48 +    Work_start,
    1.49 +    Work_end,
    1.50 +    HwResponderInvocation_start
    1.51  };
    1.52  
    1.53  #define getReturnAddressBeforeLibraryCall(vp_ptr, res_ptr) do{     \