00001
00002 #ifndef __TRACE_CORE_API_H__
00003 #define __TRACE_CORE_API_H__
00004
00005 CpvExtern(int,_traceCoreOn);
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00010 #if CMK_TRACE_IN_CHARM || ! CMK_TRACE_ENABLED
00011 #define LOGCONDITIONAL(x)
00012 #else
00013 #define LOGCONDITIONAL(x) do { if(CpvAccess(_traceCoreOn)!=0){ \
00014 x;\
00015 } } while(0);
00016 #endif
00017
00018 void RegisterLanguage(int lID, const char* ln);
00019 void RegisterEvent(int lID, int eID);
00020
00021 void LogEvent(int lID, int eID);
00022 void LogEvent1(int lID, int eID, int iLen, const int* iData);
00023 void LogEvent2(int lID, int eID, int sLen, const char* sData);
00024 void LogEvent3(int lID, int eID, int iLen, const int* iData, int sLen, const char* sData);
00025 void LogEvent4(int lID, int eID, int iLen, const int* iData, double t);
00026 #ifdef __cplusplus
00027 }
00028 #endif
00029
00030 #endif