00001
00010 #include <stdlib.h>
00011 #include "conv-trace.h"
00012
00013 CpvDeclare(int, traceOn);
00014 #if CMK_TRACE_ENABLED && CMK_PROJECTOR
00015 CpvExtern(int, _traceCoreOn);
00016 #endif
00017 int _threadEP=-123;
00018 int traceBluegeneLinked = 0;
00019
00020 void traceInit(char **argv) {
00021 CpvInitialize(int, traceOn);
00022 CpvAccess(traceOn)=0;
00023 #if CMK_TRACE_ENABLED && CMK_PROJECTOR
00024 CpvInitialize(int, _traceCoreOn);
00025 CpvAccess(_traceCoreOn)=0;
00026
00027 #endif
00028 }
00029 void traceMessageRecv(char *msg, int pe) {}
00030 void traceBeginIdle(void) {}
00031 void traceEndIdle(void) {}
00032 void traceResume(int event, int srcPE, CmiObjId *t) {}
00033 void traceSuspend(void) {}
00034 void traceAwaken(CthThread t) {}
00035 void traceUserEvent(int i) {}
00036 void traceUserBracketEvent(int a, double b, double c) {}
00037 int traceRegisterUserEvent(const char* e, int f) { return -1; }
00038
00039 int traceRegisterUserStat(const char* evt, int e) { return -1; }
00040 void updateStatPair(int e, double stat, double time) {}
00041 void updateStat(int e, double stat) {}
00042
00043 void traceClose(void) {}
00044 void traceCharmClose(void) {}
00045 void traceBegin(void) {}
00046 void traceEnd(void) {}
00047 void traceWriteSts(void) {}
00048 void traceFlushLog(void) {}
00049 int traceAvailable(void) {return 0;}
00050
00051 void traceUserSuppliedNote(const char *note) {}
00052 void traceUserSuppliedData(int data) {}
00053 void traceUserSuppliedBracketedNote(const char *note, int eventID, double bt, double et) {}
00054 void traceMemoryUsage(void) {}
00055
00056 #if CMK_SMP_TRACE_COMMTHREAD
00057 int traceBeginCommOp(char *msg) { return 0; }
00058 void traceEndCommOp(char *msg) {}
00059 void traceSendMsgComm(char *msg) {}
00060 void traceChangeLastTimestamp(double ts) {}
00061 void registerMachineUserEventsFunction(void (*eventRegistrationFunc)()) {}
00062 void traceCommSetMsgID(char *msg) {}
00063 double TraceTimerCommon(void){return CmiWallTimer();}
00064 #endif
00065
00066 void traceGetMsgID(char *msg, int *pe, int *event) {}
00067 void traceSetMsgID(char *msg, int pe, int event) {}
00068
00069
00070
00071 void EmergencyExit(void) {}
00072 void CpdEndConditionalDeliver_master(void) {}
00073
00074
00075 int _lb_version;
00076