BEFORE_ORIGINAL_SYNC(pthread_mutex_init, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutex_init, LIBPTHREAD);
-
ret = pthread_mutex_initp(mutex, attr);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, mutex, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutex_destroy, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutex_destroy, LIBPTHREAD);
-
ret = pthread_mutex_destroyp(mutex);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, mutex, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutex_trylock, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutex_trylock, LIBPTHREAD);
-
ret = pthread_mutex_trylockp(mutex);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, mutex, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutex_unlock, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutex_unlock, LIBPTHREAD);
-
ret = pthread_mutex_unlockp(mutex);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, mutex, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_init, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_init, LIBPTHREAD);
-
ret = pthread_mutexattr_initp(attr);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_destroy, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_destroy, LIBPTHREAD);
-
ret = pthread_mutexattr_destroyp(attr);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_getprioceiling, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_getprioceiling, LIBPTHREAD);
-
ret = pthread_mutexattr_getprioceilingp(attr, prioceiling);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_setprioceiling, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_setprioceiling, LIBPTHREAD);
-
ret = pthread_mutexattr_setprioceilingp(attr, prioceiling);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_getprotocol, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_getprotocol, LIBPTHREAD);
-
ret = pthread_mutexattr_getprotocolp(attr, protocol);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_setprotocol, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_setprotocol, LIBPTHREAD);
-
ret = pthread_mutexattr_setprotocolp(attr, protocol);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_getpshared, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_getpshared, LIBPTHREAD);
-
ret = pthread_mutexattr_getpsharedp(attr, pshared);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_setpshared, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_setpshared, LIBPTHREAD);
-
ret = pthread_mutexattr_setpsharedp(attr, pshared);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_gettype, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_gettype, LIBPTHREAD);
-
ret = pthread_mutexattr_gettypep(attr, type);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_mutexattr_settype, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_mutexattr_settype, LIBPTHREAD);
-
ret = pthread_mutexattr_settypep(attr, type);
AFTER_ORIGINAL_NOSYNCVAL_RET(VT_INT, ret, SYNC_PTHREAD_MUTEX,
BEFORE_ORIGINAL_SYNC(pthread_cond_init, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_cond_init, LIBPTHREAD);
-
ret = pthread_cond_initp(cond, attr);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, cond, SYNC_PTHREAD_COND_VARIABLE,
BEFORE_ORIGINAL_SYNC(pthread_cond_destroy, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_cond_destroy, LIBPTHREAD);
-
ret = pthread_cond_destroyp(cond);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, cond, SYNC_PTHREAD_COND_VARIABLE,
BEFORE_ORIGINAL_SYNC(pthread_cond_signal, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_cond_signal, LIBPTHREAD);
-
ret = pthread_cond_signalp(cond);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, cond, SYNC_PTHREAD_COND_VARIABLE,
BEFORE_ORIGINAL_SYNC(pthread_cond_broadcast, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_SYNC(pthread_cond_broadcast, LIBPTHREAD);
-
ret = pthread_cond_broadcastp(cond);
AFTER_ORIGINAL_SYNCVAL_RET(VT_INT, ret, cond, SYNC_PTHREAD_COND_VARIABLE,
BEFORE_ORIGINAL_THREAD(pthread_create, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_create, LIBPTHREAD);
-
if(blockresult)
{
probeBlockStart();
BEFORE_ORIGINAL_THREAD(pthread_cancel, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_cancel, LIBPTHREAD);
-
ret = pthread_cancelp(thread);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_STOP, "%lu", thread);
BEFORE_ORIGINAL_THREAD(pthread_detach, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_detach, LIBPTHREAD);
-
ret = pthread_detachp(thread);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER, "%lu", thread);
BEFORE_ORIGINAL_THREAD(pthread_self, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_self, LIBPTHREAD);
-
ret_pthr = pthread_selfp();
newerrno = errno;
AFTER_PACK_ORIGINAL_THREAD(ret_pthr, ret_pthr, THREAD_API_OTHER, "", 0);
postBlockEnd();
- } else {
- FLUSH_LOCAL_BUF();
}
return ret_pthr;
BEFORE_ORIGINAL_THREAD(pthread_equal, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_equal, LIBPTHREAD);
-
ret = pthread_equalp(t1, t2);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, t1, THREAD_API_OTHER, "%lu,%lu", t1, t2);
BEFORE_ORIGINAL_THREAD(pthread_setcancelstate, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_setcancelstate, LIBPTHREAD);
-
pSelf = pthread_self();
ret = pthread_setcancelstatep(state, oldstate);
BEFORE_ORIGINAL_THREAD(pthread_setcanceltype, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_setcanceltype, LIBPTHREAD);
-
pSelf = pthread_self();
ret = pthread_setcanceltypep(type, oldtype);
BEFORE_ORIGINAL_THREAD(pthread_attr_init, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_init, LIBPTHREAD);
-
ret = pthread_attr_initp(attr);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER, "%p", attr);
BEFORE_ORIGINAL_THREAD(pthread_attr_destroy, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_destroy, LIBPTHREAD);
-
ret = pthread_attr_destroyp(attr);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER, "%p", attr);
BEFORE_ORIGINAL_THREAD(pthread_attr_getdetachstate, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getdetachstate, LIBPTHREAD);
-
ret = pthread_attr_getdetachstatep(attr, detachstate);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setdetachstate, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setdetachstate, LIBPTHREAD);
-
ret = pthread_attr_setdetachstatep(attr, detachstate);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getstacksize, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getstacksize, LIBPTHREAD);
-
ret = pthread_attr_getstacksizep(attr, stacksize);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setstacksize, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setstacksize, LIBPTHREAD);
-
ret = pthread_attr_setstacksizep(attr, stacksize);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getstackaddr, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getstackaddr, LIBPTHREAD);
-
ret = pthread_attr_getstackaddrp(attr, stackaddr);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setstackaddr, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setstackaddr, LIBPTHREAD);
-
ret = pthread_attr_setstackaddrp(attr, stackaddr);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getinheritsched, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getinheritsched, LIBPTHREAD);
-
ret = pthread_attr_getinheritschedp(attr, inheritsched);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setinheritsched, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setinheritsched, LIBPTHREAD);
-
ret = pthread_attr_setinheritschedp(attr, inheritsched);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getschedparam, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getschedparam, LIBPTHREAD);
-
ret = pthread_attr_getschedparamp(attr, param);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setschedparam, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setschedparam, LIBPTHREAD);
-
ret = pthread_attr_setschedparamp(attr, param);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getschedpolicy, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getschedpolicy, LIBPTHREAD);
-
ret = pthread_attr_getschedpolicyp(attr, policy);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setschedpolicy, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setschedpolicy, LIBPTHREAD);
-
ret = pthread_attr_setschedpolicyp(attr, policy);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getguardsize, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getguardsize, LIBPTHREAD);
-
ret = pthread_attr_getguardsizep(attr, guardsize);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setguardsize, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setguardsize, LIBPTHREAD);
-
ret = pthread_attr_setguardsizep(attr, guardsize);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getscope, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getscope, LIBPTHREAD);
-
ret = pthread_attr_getscopep(attr, contentionscope);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setscope, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setscope, LIBPTHREAD);
-
ret = pthread_attr_setscopep(attr, contentionscope);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_getstack, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_getstack, LIBPTHREAD);
-
ret = pthread_attr_getstackp(attr, stackaddr, stacksize);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,
BEFORE_ORIGINAL_THREAD(pthread_attr_setstack, LIBPTHREAD);
- BEFORE_PACK_ORIGINAL_THREAD(pthread_attr_setstack, LIBPTHREAD);
-
ret = pthread_attr_setstackp(attr, stackaddr, stacksize);
AFTER_ORIGINAL_THREAD_RET(VT_INT, ret, thread, THREAD_API_OTHER,