static methodType Createp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Createp)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Mutex::Create",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_NEW);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Createp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Createp)(name);
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Mutex::Create",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
+
WcharToChar(temp, name.GetPointer());
- log.length += sprintf(log.data + log.length, "`,%s`,%ld", temp, ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_NEW);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "s", temp);
static methodType Releasep = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Releasep)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Mutex::Release",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_RELEASE);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Acquirep = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Mutex::Acquire",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,");
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,0`,%d`,%u`,0x%x`,%d`,%d",blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_ACQUIRE_WAIT_START);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
//
if (postBlockBegin(blockresult)) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Mutex::Acquire",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_ACQUIRE_WAIT_END);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType TryToAcquirep = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*TryToAcquirep)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Mutex::TryToAcquire",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_TRY_ACQUIRE);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Createp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Createp)(count);
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Semaphore::Create",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,%d`,%ld", count, ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_NEW);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "d", count);
static methodType Createp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Createp)(name, count);
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Semaphore::Create",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
+
WcharToChar(temp, name.GetPointer());
- log.length += sprintf(log.data + log.length, "`,%s,%d`,%ld", temp, count, ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_NEW);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "sd", temp, count);
static methodType Acquirep = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Semaphore::Acquire",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,%ld`,", timeout);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,0`,%d`,%u`,0x%x`,%d`,%d",blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_ACQUIRE_WAIT_START);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "x", timeout);
//
if (postBlockBegin(blockresult)) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Semaphore::Acquire",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,%ld`,%ld", timeout, ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_ACQUIRE_WAIT_END);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "x", timeout);
static methodType TryToAcquirep = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*TryToAcquirep)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Semaphore::TryToAcquire",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_TRY_ACQUIRE);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Releasep = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Releasep)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Semaphore::Release",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_RELEASE);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Constructp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Constructp)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Construct",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_NEW);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Enterp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Enter",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,");
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,0`,%d`,%u`,0x%x`,%d`,%d",blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_ACQUIRE_WAIT_START);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
//
if (postBlockBegin(blockresult)) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Enter",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_ACQUIRE_WAIT_END);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Exitp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Exitp)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Exit",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_RELEASE);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Waitp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Wait",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,");
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,0`,%d`,%u`,0x%x`,%d`,%d",blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_COND_WAIT_START);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
//
if (postBlockBegin(blockresult)) {
setProbePoint(&probeInfo);
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Wait",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_COND_WAIT_END);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType Notifyp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*Notifyp)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::Notify",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_NOTIFY);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
static methodType NotifyAllp = 0;
result ret;
probeInfo_t probeInfo;
- log_t log;
int blockresult;
bool bfiltering = true;
void *tmpPtr;
ret = (this->*NotifyAllp)();
//
if (postBlockBegin(blockresult)) {
- log.type = 0;
- log.length = 0;
- log.data[0] = '\0';
- log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_SYNC,
- probeInfo.eventIndex, "Monitor::NotifyAll",
- probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
- //Input,ret
- log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
- //PCAddr,errno,InternalCall,CallerPCAddr,SyncVal,SyncType,ApiType
- log.length += sprintf(log.data + log.length,
- "`,0`,%lu`,%d`,%u`,0x%x`,%d`,%d", ret, blockresult,
- (unsigned int)CALLER_ADDRESS, (unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_NOTIFY_ALL);
- //callstack
- log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
- getBacktraceString(&log, 4096 - log.length - 17);
- log.length += sprintf(log.data + log.length, "`,callstack_end");
-
- printLog(&log, MSG_LOG);
PREPARE_LOCAL_BUF();
PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);