xi sdag: generate tracing symbols for all constructs
authorPhil Miller <mille121@illinois.edu>
Tue, 16 Nov 2010 03:30:49 +0000 (21:30 -0600)
committerPhil Miller <mille121@illinois.edu>
Tue, 16 Nov 2010 03:30:49 +0000 (21:30 -0600)
src/xlat-i/sdag/CSdagConstruct.C

index 53129a4204f5d5267a332b65aed529ceccc3746a..13473d4cc7cd37d59f541634ae0353a9c5583a20 100644 (file)
@@ -1594,10 +1594,14 @@ void SdagConstruct::generateTrace()
   default:
     break;
   }
+
   SdagConstruct *cn;
   for(cn=constructs->begin(); !constructs->end(); cn=constructs->next()) {
     cn->generateTrace();
   }
+  if (con1) con1->generateTrace();
+  if (con2) con2->generateTrace();
+  if (con3) con3->generateTrace();
 }
 
 void SdagConstruct::generateTraceBeginCall(XStr& op)          // for trace
@@ -1668,10 +1672,14 @@ void SdagConstruct::generateRegisterEp(XStr& op)          // for trace
        << "(void)\", NULL, 0, CkIndex_" << CParsedFile::className->charstar()
        << "::__idx, 0);\n";
   }
+
   SdagConstruct *cn;
   for(cn=constructs->begin(); !constructs->end(); cn=constructs->next()) {
     cn->generateRegisterEp(op);
   }
+  if (con1) con1->generateRegisterEp(op);
+  if (con2) con2->generateRegisterEp(op);
+  if (con3) con3->generateRegisterEp(op);
 }
 
 void SdagConstruct::generateTraceEpDecl(XStr& op)          // for trace
@@ -1683,6 +1691,9 @@ void SdagConstruct::generateTraceEpDecl(XStr& op)          // for trace
   for(cn=constructs->begin(); !constructs->end(); cn=constructs->next()) {
     cn->generateTraceEpDecl(op);
   }
+  if (con1) con1->generateTraceEpDecl(op);
+  if (con2) con2->generateTraceEpDecl(op);
+  if (con3) con3->generateTraceEpDecl(op);
 }
 
 
@@ -1696,6 +1707,9 @@ void SdagConstruct::generateTraceEpDef(XStr& op)          // for trace
   for(cn=constructs->begin(); !constructs->end(); cn=constructs->next()) {
     cn->generateTraceEpDef(op);
   }
+  if (con1) con1->generateTraceEpDef(op);
+  if (con2) con2->generateTraceEpDef(op);
+  if (con3) con3->generateTraceEpDef(op);
 }