# HG changeset patch # User Me # Date 1289761758 28800 # Node ID 72b8d73c324dc361b74cf7a7b4e28ce3bde0e624 # Parent fef69b887df4de1e8b47e22deffe9620337d626f Nov 14 working version -- for PLDI paper -- has measurement of plugin time diff -r fef69b887df4 -r 72b8d73c324d SSR_PluginFns.c --- a/SSR_PluginFns.c Sat Nov 13 15:19:18 2010 -0800 +++ b/SSR_PluginFns.c Sun Nov 14 11:09:18 2010 -0800 @@ -63,7 +63,14 @@ SSR__Request_Handler( VirtProcr *requestingPr, void *_semEnv ) { SSRSemEnv *semEnv; VMSReqst *req; - + + //============================= MEASUREMENT STUFF ======================== + #ifdef MEAS__TIME_PLUGIN + int32 startStamp, endStamp; + saveLowTimeStampCountInto( startStamp ); + #endif + //======================================================================== + semEnv = (SSRSemEnv *)_semEnv; req = VMS__take_next_request_out_of( requestingPr ); @@ -87,6 +94,13 @@ req = VMS__take_next_request_out_of( requestingPr ); } //while( req != NULL ) + //============================= MEASUREMENT STUFF ======================== + #ifdef MEAS__TIME_PLUGIN + saveLowTimeStampCountInto( endStamp ); + addIntervalToHist( startStamp, endStamp, _VMSMasterEnv->pluginLowTimeHist ); + addIntervalToHist( startStamp, endStamp, _VMSMasterEnv->pluginHighTimeHist ); + #endif + //======================================================================== } diff -r fef69b887df4 -r 72b8d73c324d SSR_lib.c --- a/SSR_lib.c Sat Nov 13 15:19:18 2010 -0800 +++ b/SSR_lib.c Sun Nov 14 11:09:18 2010 -0800 @@ -585,7 +585,7 @@ // (*(singletonAddr))->endInstrAddr = &&EndDataSingletonInstrAddr; //Assembly code takes the return addr off the stack and saves - // into the singleton. The first position in the singleton is the + // into the singleton. The first field in the singleton is the // "endInstrAddr" field, and the return addr is at 0x4(%%ebp) asm volatile("movl 0x4(%%ebp), %%eax; \ movl %0, %%ebx; \