Fixed a bug in setting the starting time of tracing MPI_Isend
authorChao Mei <chaomei2@illinois.edu>
Fri, 18 Feb 2011 23:23:39 +0000 (17:23 -0600)
committerChao Mei <chaomei2@illinois.edu>
Fri, 18 Feb 2011 23:23:39 +0000 (17:23 -0600)
src/arch/mpi/machine.c

index 716813a28babe581ff704694f0f3fd0230c565e5..d1fc184172220f398d33a1abd6f1c3440021757b 100644 (file)
@@ -1212,6 +1212,7 @@ static int SendMsgBuf()
        
 #if CMK_SMP_TRACE_COMMTHREAD
        traceBeginCommOp(msg);
+       traceChangeLastTimestamp(CpvAccess(projTraceStart));
        /* traceSendMsgComm must execute after traceBeginCommOp because
          * we pretend we execute an entry method, and inside this we
          * pretend we will send another message. Otherwise how could
@@ -1220,7 +1221,6 @@ static int SendMsgBuf()
          * messages correctly! -Chao Mei
          */
        traceSendMsgComm(msg);
-       traceChangeLastTimestamp(CpvAccess(projTraceStart));
        traceEndCommOp(msg);
        #if CMI_MPI_TRACE_MOREDETAILED
        char tmp[64];