changeset 23:72b8d73c324d test_without_inline

Nov 14 working version -- for PLDI paper -- has measurement of plugin time
author Me
date Sun, 14 Nov 2010 11:09:18 -0800
parents fef69b887df4
children a8e41e0bfa61
files SSR_PluginFns.c SSR_lib.c
diffstat 2 files changed, 16 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/SSR_PluginFns.c	Sat Nov 13 15:19:18 2010 -0800
     1.2 +++ b/SSR_PluginFns.c	Sun Nov 14 11:09:18 2010 -0800
     1.3 @@ -63,7 +63,14 @@
     1.4  SSR__Request_Handler( VirtProcr *requestingPr, void *_semEnv )
     1.5   { SSRSemEnv *semEnv;
     1.6     VMSReqst    *req;
     1.7 - 
     1.8 +   
     1.9 +   //============================= MEASUREMENT STUFF ========================
    1.10 +   #ifdef MEAS__TIME_PLUGIN
    1.11 +   int32 startStamp, endStamp;
    1.12 +   saveLowTimeStampCountInto( startStamp );
    1.13 +   #endif
    1.14 +   //========================================================================
    1.15 +
    1.16     semEnv = (SSRSemEnv *)_semEnv;
    1.17  
    1.18     req    = VMS__take_next_request_out_of( requestingPr );
    1.19 @@ -87,6 +94,13 @@
    1.20        req = VMS__take_next_request_out_of( requestingPr );
    1.21      } //while( req != NULL )
    1.22  
    1.23 +   //============================= MEASUREMENT STUFF ========================
    1.24 +   #ifdef MEAS__TIME_PLUGIN
    1.25 +   saveLowTimeStampCountInto( endStamp );
    1.26 +   addIntervalToHist( startStamp, endStamp, _VMSMasterEnv->pluginLowTimeHist );
    1.27 +   addIntervalToHist( startStamp, endStamp, _VMSMasterEnv->pluginHighTimeHist );
    1.28 +   #endif
    1.29 +   //========================================================================
    1.30   }
    1.31  
    1.32  
     2.1 --- a/SSR_lib.c	Sat Nov 13 15:19:18 2010 -0800
     2.2 +++ b/SSR_lib.c	Sun Nov 14 11:09:18 2010 -0800
     2.3 @@ -585,7 +585,7 @@
     2.4  //   (*(singletonAddr))->endInstrAddr =  &&EndDataSingletonInstrAddr;
     2.5  
     2.6           //Assembly code takes the return addr off the stack and saves
     2.7 -         // into the singleton.  The first position in the singleton is the
     2.8 +         // into the singleton.  The first field in the singleton is the
     2.9           // "endInstrAddr" field, and the return addr is at 0x4(%%ebp)
    2.10        asm volatile("movl 0x4(%%ebp),     %%eax;   \
    2.11                      movl        %0,      %%ebx;   \