change logsize to long integer. (not common use, but in case someone use a big number...
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 13 Mar 2010 22:46:39 +0000 (16:46 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 13 Mar 2010 22:46:39 +0000 (16:46 -0600)
src/ck-perf/trace-common.h
src/ck-perf/trace-projections.C

index 1b717bff813f43e3cd2d18b6ba8f0924c598acca..884ca11a6b4e08a2a277cf16013bceb148ccc03d 100644 (file)
@@ -61,7 +61,7 @@
 
 #define  USER_EVENT_PAIR    100
 
-CkpvExtern(int, CtrLogBufSize);
+CkpvExtern(CmiInt8, CtrLogBufSize);
 CkpvExtern(char*, traceRoot);
 CkpvExtern(int, traceRootBaseLength);
 CkpvExtern(char*, selective);
index be8c10630301d2815b22bdbd61306cc0beddf887..9a77ceeef72c77ba6af841b00085a7eff8dde9e3 100644 (file)
@@ -52,7 +52,7 @@ CkReduction::reducerType minMaxReductionType;
 CkpvStaticDeclare(TraceProjections*, _trace);
 CtvStaticDeclare(int,curThreadEvent);
 
-CkpvDeclare(int, CtrLogBufSize);
+CkpvDeclare(CmiInt8, CtrLogBufSize);
 
 typedef CkVec<char *>  usrEventVec;
 CkpvStaticDeclare(usrEventVec, usrEventlist);
@@ -952,13 +952,13 @@ TraceProjections::TraceProjections(char **argv):
   if (CkpvAccess(traceOnPe) == 0) return;
 
   CtvInitialize(int,curThreadEvent);
-  CkpvInitialize(int, CtrLogBufSize);
+  CkpvInitialize(CmiInt8, CtrLogBufSize);
   CkpvAccess(CtrLogBufSize) = DefaultLogBufSize;
   CtvAccess(curThreadEvent)=0;
-  if (CmiGetArgIntDesc(argv,"+logsize",&CkpvAccess(CtrLogBufSize), 
+  if (CmiGetArgLongDesc(argv,"+logsize",&CkpvAccess(CtrLogBufSize), 
                       "Log entries to buffer per I/O")) {
     if (CkMyPe() == 0) {
-      CmiPrintf("Trace: logsize: %d\n", CkpvAccess(CtrLogBufSize));
+      CmiPrintf("Trace: logsize: %ld\n", CkpvAccess(CtrLogBufSize));
     }
   }
   checknested =