Interface change for projections support for AMPI. Now application developer can...
authorChao Mei <chaomei2@illinois.edu>
Mon, 9 Jan 2006 01:00:15 +0000 (01:00 +0000)
committerChao Mei <chaomei2@illinois.edu>
Mon, 9 Jan 2006 01:00:15 +0000 (01:00 +0000)
src/ck-perf/trace-common.C

index 9a237df0b073ffae8cd7c62c7401af98326f908e..deaedc36f8e81a3c135ed3a0c256a73385c52e69 100644 (file)
@@ -417,10 +417,13 @@ void registerFunction(char *name){
 */
 
 extern "C"
 */
 
 extern "C"
-int traceRegisterFunction(const char* name) {
+int traceRegisterFunction(const char* name, int idx) {
 #ifndef CMK_OPTIMIZE
 #ifndef CMK_OPTIMIZE
-  int idx;
-  CkpvAccess(_traces)->regFunc(name, idx);
+  if(idx==-999){
+    CkpvAccess(_traces)->regFunc(name, idx);
+  } else {
+    CkpvAccess(_traces)->regFunc(name, idx, 1);
+  }
   return idx;
 #else
   return 0;
   return idx;
 #else
   return 0;