fix comm thread tracing for small and large messages.
[charm.git] / src / ck-perf / trace-common.C
index 1653b31dcde0af7190e2a1fa998cc0f7d3e3837f..978ab56b290b271c2bc66fbf8295a30fd4d8d940 100644 (file)
@@ -695,7 +695,35 @@ void traceSendMsgComm(char *msg){
     CkpvAccess(_traces)->creation(msg);
 #endif
 }
+
+extern "C"
+void traceCommSetMsgID(char *msg){
+#if CMK_TRACE_ENABLED
+  if (CpvAccess(traceOn) && CkpvAccess(_traces) && CkIsCharmMessage(msg))
+    CkpvAccess(_traces)->traceCommSetMsgID(msg);
+#endif
+}
+
+#endif
+
+extern "C"
+void traceGetMsgID(char *msg, int *pe, int *event)
+{
+#if CMK_TRACE_ENABLED
+  if (CpvAccess(traceOn) && CkpvAccess(_traces) && CkIsCharmMessage(msg))
+    CkpvAccess(_traces)->traceGetMsgID(msg, pe, event);
 #endif
+}
+
+extern "C"
+void traceSetMsgID(char *msg, int pe, int event)
+{
+#if CMK_TRACE_ENABLED
+  if (CpvAccess(traceOn) && CkpvAccess(_traces) && CkIsCharmMessage(msg))
+    CkpvAccess(_traces)->traceSetMsgID(msg, pe, event);
+#endif
+}
+
 
 extern "C"
 void traceChangeLastTimestamp(double ts){