Lines Matching full:threadid
104 static THREADID g_tid_of_thread_which_called_create_thread = -1;
132 typedef void (*callback_t)(THREADID tid, InstrumentedCallFrame &frame,
203 THREADID tid;
204 THREADID parent_tid;
229 // Array of pin threads, indexed by pin's THREADID.
240 static void ReportAccesRange(THREADID tid, uintptr_t pc, EventType type, uintptr_t x, size_t size) {
253 #define EXTRA_REPLACE_PARAMS THREADID tid, uintptr_t pc,
481 if (t.parent_tid != (THREADID)-1) {
688 #define FAST_WRAP_PARAM0 THREADID tid, ADDRINT pc, ADDRINT sp
694 THREADID tid, InstrumentedCallFrame &frame, ADDRINT ret
723 #define WRAP_PARAM4 THREADID tid, ADDRINT pc, CONTEXT *ctx, \
733 static uintptr_t CallFun4(CONTEXT *ctx, THREADID tid,
748 static uintptr_t CallFun6(CONTEXT *ctx, THREADID tid,
859 static void ShowPcAndSp(const char *where, THREADID tid,
874 static void DebugOnlyShowPcAndSp(const char *where, THREADID tid,
887 static void IgnoreMopsBegin(THREADID tid) {
891 static void IgnoreMopsEnd(THREADID tid) {
896 static void IgnoreSyncAndMopsBegin(THREADID tid) {
901 static void IgnoreSyncAndMopsEnd(THREADID tid) {
930 static void Before_cxa_guard_acquire(THREADID tid, ADDRINT pc, ADDRINT guard) {
934 static void After_cxa_guard_acquire(THREADID tid, ADDRINT pc, ADDRINT ret) {
943 static void After_cxa_guard_release(THREADID tid, ADDRINT pc) {
955 void TmpCallback1(THREADID tid, ADDRINT pc) {
958 void TmpCallback2(THREADID tid, ADDRINT pc) {
963 static void HandleThreadCreateBefore(THREADID tid, ADDRINT pc) {
967 CHECK(g_tid_of_thread_which_called_create_thread == (THREADID)-1);
972 static void HandleThreadCreateAbort(THREADID tid) {
974 g_tid_of_thread_which_called_create_thread = (THREADID)-1;
980 static THREADID HandleThreadCreateAfter(THREADID tid, pthread_t child_ptid,
991 THREADID last_child_tid = g_pin_threads[tid].last_child_tid;
1039 void CallbackForThreadStart(THREADID tid, CONTEXT *ctxt,
1074 CHECK(t.parent_tid != (THREADID)-1);
1082 if (has_parent && t.parent_tid != (THREADID)-1) {
1103 static void Before_start_thread(THREADID tid, ADDRINT pc, ADDRINT sp) {
1186 THREADID child_tid = HandleThreadCreateAfter(tid, child_ptid,
1198 static void Before_BaseThreadInitThunk(THREADID tid, ADDRINT pc, ADDRINT sp) {
1228 static void Before_RtlExitUserThread(THREADID tid, ADDRINT pc) {
1240 void CallbackForThreadFini(THREADID tid, const CONTEXT *ctxt,
1251 static bool HandleThreadJoinAfter(THREADID tid, pthread_t joined_ptid) {
1252 THREADID joined_tid = kMaxThreads;
1257 for (THREADID j = 1; j < kMaxThreads; j++) {
1324 uintptr_t CallStdCallFun1(CONTEXT *ctx, THREADID tid,
1335 uintptr_t CallStdCallFun2(CONTEXT *ctx, THREADID tid,
1347 uintptr_t CallStdCallFun3(CONTEXT *ctx, THREADID tid,
1361 uintptr_t CallStdCallFun4(CONTEXT *ctx, THREADID tid,
1376 uintptr_t CallStdCallFun5(CONTEXT *ctx, THREADID tid,
1393 uintptr_t CallStdCallFun6(CONTEXT *ctx, THREADID tid,
1411 uintptr_t CallStdCallFun7(CONTEXT *ctx, THREADID tid,
1821 ADDRINT Before_RET_IF(THREADID tid, ADDRINT pc, ADDRINT sp, ADDRINT ret) {
1826 void Before_RET_THEN(THREADID tid, ADDRINT pc, ADDRINT sp, ADDRINT ret) {
1917 void InsertBeforeEvent_SysCall(THREADID tid, ADDRINT sp) {
1923 void InsertBeforeEvent_Call(THREADID tid, ADDRINT pc, ADDRINT target,
1946 static void OnTraceSerial(THREADID tid, ADDRINT sp, TraceInfo *trace_info,
2009 static void OnTraceNoMopsVerify(THREADID tid, ADDRINT sp,
2017 static void OnTraceVerify(THREADID tid, ADDRINT sp, TraceInfo *trace_info,
2039 static void OnMop(uintptr_t *addr, THREADID tid, ADDRINT idx, ADDRINT a) {
2055 THREADID tid, ADDRINT idx, ADDRINT a) {
2061 static void OnMopCheckIdentStoreBefore(uintptr_t *addr, THREADID tid, ADDRINT idx, ADDRINT a) {
2065 static void OnMopCheckIdentStoreAfter(uintptr_t *addr, THREADID tid, ADDRINT idx, ADDRINT a) {
2079 static void Before_SignallingIOCall(THREADID tid, ADDRINT pc) {
2083 static void After_WaitingIOCall(THREADID tid, ADDRINT pc) {
2089 static void On_atexit(THREADID tid, ADDRINT pc) {
2093 static void On_exit(THREADID tid, ADDRINT pc) {
2099 static void Before_pthread_unlock(THREADID tid, ADDRINT pc, ADDRINT mu) {
2193 static void Before_pthread_mutex_init(THREADID tid, ADDRINT pc, ADDRINT mu) {
2196 static void Before_pthread_rwlock_init(THREADID tid, ADDRINT pc, ADDRINT mu) {
2200 static void Before_pthread_mutex_destroy(THREADID tid, ADDRINT pc, ADDRINT mu) {
2203 static void Before_pthread_rwlock_destroy(THREADID tid, ADDRINT pc, ADDRINT mu) {
2222 static void Before_pthread_cond_signal(THREADID tid, ADDRINT pc, ADDRINT cv) {
2246 static void Before_epoll_ctl(THREADID tid, ADDRINT pc) {
2250 static void After_epoll_wait(THREADID tid, ADDRINT pc) {
2255 static void After_sem_open(THREADID tid, ADDRINT pc, ADDRINT ret) {
2259 static void Before_sem_post(THREADID tid, ADDRINT pc, ADDRINT sem) {
2294 static void On_AnnotateBenignRace(THREADID tid, ADDRINT pc,
2300 static void On_AnnotateBenignRaceSized(THREADID tid, ADDRINT pc,
2306 static void On_AnnotateExpectRace(THREADID tid, ADDRINT pc,
2312 static void On_AnnotateFlushExpectedRaces(THREADID tid, ADDRINT pc,
2318 static void On_AnnotateTraceMemory(THREADID tid, ADDRINT pc,
2324 static void On_AnnotateNewMemory(THREADID tid, ADDRINT pc,
2330 static void On_AnnotateNoOp(THREADID tid, ADDRINT pc,
2337 static void On_AnnotateFlushState(THREADID tid, ADDRINT pc,
2342 static void On_AnnotateCondVarSignal(THREADID tid, ADDRINT pc,
2347 static void On_AnnotateCondVarWait(THREADID tid, ADDRINT pc,
2352 static void On_AnnotateHappensBefore(THREADID tid, ADDRINT pc,
2357 static void On_AnnotateHappensAfter(THREADID tid, ADDRINT pc,
2362 static void On_AnnotateEnableRaceDetection(THREADID tid, ADDRINT pc,
2370 static void On_AnnotateIgnoreReadsBegin(THREADID tid, ADDRINT pc,
2374 static void On_AnnotateIgnoreReadsEnd(THREADID tid, ADDRINT pc,
2378 static void On_AnnotateIgnoreWritesBegin(THREADID tid, ADDRINT pc,
2382 static void On_AnnotateIgnoreWritesEnd(THREADID tid, ADDRINT pc,
2386 static void On_AnnotateThreadName(THREADID tid, ADDRINT pc,
2391 static void On_AnnotatePublishMemoryRange(THREADID tid, ADDRINT pc,
2397 static void On_AnnotateUnpublishMemoryRange(THREADID tid, ADDRINT pc,
2405 static void On_AnnotateMutexIsUsedAsCondVar(THREADID tid, ADDRINT pc,
2411 static void On_AnnotateMutexIsNotPhb(THREADID tid, ADDRINT pc,
2417 static void On_AnnotatePCQCreate(THREADID tid, ADDRINT pc,
2423 static void On_AnnotatePCQDestroy(THREADID tid, ADDRINT pc,
2429 static void On_AnnotatePCQPut(THREADID tid, ADDRINT pc,
2435 static void On_AnnotatePCQGet(THREADID tid, ADDRINT pc,
2441 static void On_AnnotateRWLockCreate(THREADID tid, ADDRINT pc,
2447 static void On_AnnotateRWLockDestroy(THREADID tid, ADDRINT pc,
2453 static void On_AnnotateRWLockAcquired(THREADID tid, ADDRINT pc,
2459 static void On_AnnotateRWLockReleased(THREADID tid, ADDRINT pc,