2 Dummy versions of the Charm++/C++ routines in trace-common.C,
3 used when you're *only* linking with Converse.
5 FIXME: this file should be eliminated via a pluggable
6 tracing architecture (projector?).
8 Orion Sky Lawlor, olawlor@acm.org, 2003/3/27
11 #include "conv-trace.h"
13 CpvDeclare(int, traceOn
); /* For threads.c */
14 #if CMK_TRACE_ENABLED && CMK_PROJECTOR
15 CpvExtern(int, _traceCoreOn
); /* For cursed projector core */
17 int _threadEP
=-123; /* for charmProjections.C */
18 int traceBluegeneLinked
= 0;
21 void traceInit(char **argv
) {
22 CpvInitialize(int, traceOn
);
24 #if CMK_TRACE_ENABLED && CMK_PROJECTOR
25 CpvInitialize(int, _traceCoreOn
);
26 CpvAccess(_traceCoreOn
)=0;
27 /* initTraceCore(argv); */
30 void traceMessageRecv(char *msg
, int pe
) {}
31 void traceBeginIdle(void) {}
32 void traceEndIdle(void) {}
34 void traceResume(int event
, int srcPE
, CmiObjId
*t
) {}
36 void traceSuspend(void) {}
38 void traceAwaken(CthThread t
) {}
39 void traceUserEvent(int i
) {}
40 void traceUserBracketEvent(int a
, double b
, double c
) {}
41 int traceRegisterUserEvent(const char* e
, int f
) { return -1; }
42 // User stat functions for converse.
43 int traceRegisterUserStat(const char* evt
, int e
) { return -1; }
44 void updateStatPair(int e
, double stat
, double time
) {}
45 void updateStat(int e
, double stat
) {}
48 void traceClose(void) {}
49 void traceCharmClose(void) {}
50 void traceBegin(void) {}
51 void traceEnd(void) {}
52 void traceWriteSts(void) {}
53 void traceFlushLog(void) {}
54 int traceAvailable(void) {return 0;}
56 int traceRegisterFunction(const char *name
, int idx
) { return -1; }
57 void traceBeginFuncIndexProj(int idx
, const char* name
, int lineNo
) {}
58 void traceEndFuncIndexProj(int idx
) {}
59 void traceBeginFuncProj(const char *name
,const char *file
,int line
){}
60 void traceEndFuncProj(const char *name
){}
61 void traceUserSuppliedNote(const char *note
) {}
62 void traceUserSuppliedData(int data
) {}
63 void traceUserSuppliedBracketedNote(const char *note
, int eventID
, double bt
, double et
) {}
64 void traceMemoryUsage(void) {}
66 #if CMK_SMP_TRACE_COMMTHREAD
67 int traceBeginCommOp(char *msg
){}
68 void traceEndCommOp(char *msg
) {}
69 void traceSendMsgComm(char *msg
) {}
70 void traceChangeLastTimestamp(double ts
) {}
71 void registerMachineUserEventsFunction(void (*eventRegistrationFunc
)()) {}
72 void traceCommSetMsgID(char *msg
) {}
73 double TraceTimerCommon(void){return CmiWallTimer();}
76 void traceGetMsgID(char *msg
, int *pe
, int *event
) {}
77 void traceSetMsgID(char *msg
, int pe
, int event
) {}
79 /* This routine, included in Charm++ programs from init.C, needs to be present in converse as well.
80 Here is a place where it gets included only in converse, and not in Charm++ (thus not generating conflicts). */
82 void EmergencyExit(void) {}
84 void CpdEndConditionalDeliver_master(void) {}