2 #ifndef __TRACE_CORE_API_H__
3 #define __TRACE_CORE_API_H__
5 CpvCExtern(int,_traceCoreOn
);
10 #if CMK_TRACE_IN_CHARM || ! CMK_TRACE_ENABLED
11 #define LOGCONDITIONAL(x)
13 #define LOGCONDITIONAL(x) do { if(CpvAccess(_traceCoreOn)!=0){ \
18 void RegisterLanguage(int lID
, const char* ln
);
19 void RegisterEvent(int lID
, int eID
);
20 /* TODO some cleanup required below */
21 void LogEvent(int lID
, int eID
);
22 void LogEvent1(int lID
, int eID
, int iLen
, const int* iData
);
23 void LogEvent2(int lID
, int eID
, int sLen
, const char* sData
);
24 void LogEvent3(int lID
, int eID
, int iLen
, const int* iData
, int sLen
, const char* sData
);
25 void LogEvent4(int lID
, int eID
, int iLen
, const int* iData
, double t
);