two more comm thread tracing functions need to be sure the msg is charm message
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 14 Jan 2012 06:01:09 +0000 (00:01 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 14 Jan 2012 06:01:09 +0000 (00:01 -0600)
src/ck-perf/trace-common.C

index 241805e6fef940240310ce90ca474b1783bd7637..3164eeba4181da647c828bc82e4c1d8dcc3f8752 100644 (file)
@@ -670,7 +670,7 @@ void traceEndFuncIndexProj(int idx){
 extern "C"
 void traceBeginCommOp(char *msg){
 #if CMK_TRACE_ENABLED
-  if (CpvAccess(traceOn) && CkpvAccess(_traces))
+  if (CpvAccess(traceOn) && CkpvAccess(_traces) && CkIsCharmMessage(msg))
     CkpvAccess(_traces)->beginExecute(msg);
 #endif
 }
@@ -678,7 +678,7 @@ void traceBeginCommOp(char *msg){
 extern "C"
 void traceEndCommOp(char *msg){
 #if CMK_TRACE_ENABLED
-  if (CpvAccess(traceOn) && CkpvAccess(_traces))
+  if (CpvAccess(traceOn) && CkpvAccess(_traces) && CkIsCharmMessage(msg))
     CkpvAccess(_traces)->endExecute(msg);
 #endif
 }