Created perfModuleInit() to handle CPV macros
authorRobert Brunner <rbrunner@uiuc.edu>
Mon, 10 Jul 1995 22:29:40 +0000 (22:29 +0000)
committerRobert Brunner <rbrunner@uiuc.edu>
Mon, 10 Jul 1995 22:29:40 +0000 (22:29 +0000)
src/ck-perf/perf-none.c
src/ck-perf/perf-proj.c
src/ck-perf/perf-sum.c

index a31a520cbd5c632fa371a52ea71560319044a095..c1dd96964d50adc75f33b69ab0fdc0f99d7d3ecf 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.1  1995-06-08 17:18:11  gursoy
+ * Revision 2.2  1995-07-10 22:29:40  brunner
+ * Created perfModuleInit() to handle CPV macros
+ *
+ * Revision 2.1  1995/06/08  17:18:11  gursoy
  * Cpv macro changes done
  *
  * Revision 1.2  1995/04/02  00:49:19  sanjeev
@@ -29,6 +32,8 @@ static char ident[] = "@(#)$Header$";
 
 CpvExtern(int, RecdPerfMsg);
 
+perfModuleInit() {}
+
 program_name(s,m) char *s, *m; {}
 
 log_init(){CpvAccess(RecdPerfMsg) = 1;}
index 296d569cfd0080a54d985c6f8287d08716021625..13d6bb1fc460231bffe3115f62d92591f81970d9 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.1  1995-06-19 16:47:38  brunner
+ * Revision 2.2  1995-07-10 22:29:40  brunner
+ * Created perfModuleInit() to handle CPV macros
+ *
+ * Revision 2.1  1995/06/19  16:47:38  brunner
  * Added Cpv macros and modified to use chareCount instead of TotalChares,
  * pseudoCount instead of TotalPseudos, etc.
  * Doesn't work yet, but I need to get a new copy of the files, so I'm
@@ -73,6 +76,23 @@ CpvExtern(int,chareCount);
 CpvExtern(int,pseudoCount);
 CpvExtern(int,msgCount);
 
+perfModuleInit()
+{
+  CpvInitialize(char*,pgm);
+  CpvInitialize(char*,machine);
+  CpvInitialize(char*,log_file_name);
+  CpvInitialize(int,current_event);
+  CpvInitialize(LOGARR,logbuf);
+  CpvInitialize(int,logcnt);        /* no. of log entries      */
+  CpvInitialize(int,iteration);
+  CpvInitialize(int,store_event);
+  CpvInitialize(int,store_pe);
+  CpvInitialize(uint, store_time);  /* not used currently? */
+  CpvInitialize(int,begin_pe);
+  CpvInitialize(int,begin_event);
+  CpvInitialize(uint,begin_processing_time);
+  CpvInitialize(FILE*,state_file_fd);
+}
 
 void PrintStsFile(str)
 char *str ;
@@ -253,20 +273,6 @@ log_init()
        int length;
        FILE *log_file_desc;
 
-       CpvInitialize(char*,pgm);
-       CpvInitialize(char*,machine);
-       CpvInitialize(char*,log_file_name);
-       CpvInitialize(int,current_event);
-       CpvInitialize(LOGARR,logbuf);
-       CpvInitialize(int,logcnt);        /* no. of log entries         */
-       CpvInitialize(int,iteration);
-       CpvInitialize(int,store_event);
-       CpvInitialize(int,store_pe);
-       CpvInitialize(uint, store_time);  /* not used currently? */
-       CpvInitialize(int,begin_pe);
-       CpvInitialize(int,begin_event);
-       CpvInitialize(uint,begin_processing_time);
-       CpvInitialize(FILE*,state_file_fd);
 
        CpvAccess(RecdPerfMsg)=1;
        CpvAccess(current_event)=1;
index 89c9f74b2b88cedff629249afe50415e5ecc7bd7..943361612fa22b6b0fba530efbe193ae43b3eb97 100644 (file)
  ***************************************************************************
  * REVISION HISTORY:
  *      $Log$
- *      Revision 2.2  1995-07-06 22:42:54  narain
- *      Corrected usage of LdbBocNum to StatisticBocNum
+ *      Revision 2.3  1995-07-10 22:29:40  brunner
+ *      Created perfModuleInit() to handle CPV macros
+ *
+ * Revision 2.2  1995/07/06  22:42:54  narain
+ * Corrected usage of LdbBocNum to StatisticBocNum
  *
  *
  ***************************************************************************/
@@ -45,7 +48,7 @@ CpvDeclare(int,start_processing_time);
 
 CpvExtern(int,RecdStatMsg);
 
-init_globals()
+perfModuleInit()
 {
   CpvInitialize(char*,pgm);
   CpvInitialize(int,RecdPerfMsg);
@@ -153,8 +156,6 @@ log_init()
        int i, j;
        CpvAccess(timestep) = INITIAL_TIMESTEP;
 
-
-       init_globals();
        CpvAccess(RecdPerfMsg) = 0;
        CpvAccess(init_time) = CkTimer();
        CpvAccess(start_processing_time) = -1;