Lines Matching refs:g_threadinfo
68 ThreadInfo* DRD_(g_threadinfo);
150 DRD_(g_threadinfo) = VG_(malloc)("drd.main.ti.1", in DRD_()
151 DRD_N_THREADS * sizeof DRD_(g_threadinfo)[0]); in DRD_()
154 DRD_(g_threadinfo)[i] = initval; in DRD_() local
173 if (DRD_(g_threadinfo)[i].vg_thread_exists == True in DRD_()
174 && DRD_(g_threadinfo)[i].vg_threadid == tid) in DRD_()
192 if (!DRD_(g_threadinfo)[i].valid) in DRD_()
196 DRD_(g_threadinfo)[i].valid = True; in DRD_() local
197 DRD_(g_threadinfo)[i].vg_thread_exists = True; in DRD_() local
198 DRD_(g_threadinfo)[i].vg_threadid = tid; in DRD_() local
199 DRD_(g_threadinfo)[i].pt_threadid = INVALID_POSIX_THREADID; in DRD_() local
200 DRD_(g_threadinfo)[i].stack_min = 0; in DRD_() local
201 DRD_(g_threadinfo)[i].stack_min_min = 0; in DRD_() local
202 DRD_(g_threadinfo)[i].stack_startup = 0; in DRD_() local
203 DRD_(g_threadinfo)[i].stack_max = 0; in DRD_() local
205 DRD_(g_threadinfo)[i].on_alt_stack = False; in DRD_() local
206 DRD_(g_threadinfo)[i].is_recording_loads = True; in DRD_() local
207 DRD_(g_threadinfo)[i].is_recording_stores = True; in DRD_() local
208 DRD_(g_threadinfo)[i].pthread_create_nesting_level = 0; in DRD_() local
209 DRD_(g_threadinfo)[i].synchr_nesting = 0; in DRD_() local
210 DRD_(g_threadinfo)[i].deletion_seq = s_deletion_tail - 1; in DRD_() local
211 DRD_(g_threadinfo)[i].creator_thread = DRD_INVALID_THREADID; in DRD_() local
213 DRD_(g_threadinfo)[i].bind_guard_flag = 0; in DRD_() local
216 tl_assert(DRD_(g_threadinfo)[i].sg_first == NULL); in DRD_()
217 tl_assert(DRD_(g_threadinfo)[i].sg_last == NULL); in DRD_()
243 if (DRD_(g_threadinfo)[i].posix_thread_exists in DRD_()
244 && DRD_(g_threadinfo)[i].pt_threadid == tid) in DRD_()
259 return (DRD_(g_threadinfo)[tid].vg_thread_exists in DRD_()
260 ? DRD_(g_threadinfo)[tid].vg_threadid in DRD_()
313 tl_assert(DRD_(g_threadinfo)[created].sg_first == NULL); in DRD_()
314 tl_assert(DRD_(g_threadinfo)[created].sg_last == NULL); in DRD_()
323 DRD_(g_threadinfo)[created].creator_thread = creator; in DRD_() local
348 DRD_(g_threadinfo)[created].stack_max in DRD_() local
350 DRD_(g_threadinfo)[created].stack_startup in DRD_() local
351 = DRD_(g_threadinfo)[created].stack_max; in DRD_()
352 DRD_(g_threadinfo)[created].stack_min in DRD_() local
353 = DRD_(g_threadinfo)[created].stack_max; in DRD_()
354 DRD_(g_threadinfo)[created].stack_min_min in DRD_() local
355 = DRD_(g_threadinfo)[created].stack_max; in DRD_()
356 DRD_(g_threadinfo)[created].stack_size in DRD_() local
358 tl_assert(DRD_(g_threadinfo)[created].stack_max != 0); in DRD_()
367 DRD_(g_threadinfo)[tid].vg_thread_exists = False; in DRD_() local
368 DRD_(g_threadinfo)[tid].posix_thread_exists = False; in DRD_() local
369 DRD_(g_threadinfo)[tid].deletion_seq = s_deletion_head++; in DRD_() local
376 && DRD_(g_threadinfo)[j].deletion_seq == s_deletion_tail) in DRD_()
447 tl_assert(DRD_(g_threadinfo)[tid].stack_min <= stack_startup); in DRD_()
448 tl_assert(stack_startup <= DRD_(g_threadinfo)[tid].stack_max); in DRD_()
449 DRD_(g_threadinfo)[tid].stack_startup = stack_startup; in DRD_() local
457 return DRD_(g_threadinfo)[tid].stack_min; in DRD_()
468 return DRD_(g_threadinfo)[tid].stack_min_min; in DRD_()
476 return DRD_(g_threadinfo)[tid].stack_max; in DRD_()
484 return DRD_(g_threadinfo)[tid].stack_size; in DRD_()
491 return DRD_(g_threadinfo)[tid].on_alt_stack; in DRD_()
500 DRD_(g_threadinfo)[tid].on_alt_stack = on_alt_stack; in DRD_() local
508 n += DRD_(g_threadinfo)[i].on_alt_stack; in DRD_()
522 tl_assert(DRD_(g_threadinfo)[tid].synchr_nesting >= 0); in DRD_()
523 for (sg = DRD_(g_threadinfo)[tid].sg_last; sg; sg = sg_prev) { in DRD_()
529 DRD_(g_threadinfo)[tid].valid = False; in DRD_() local
530 DRD_(g_threadinfo)[tid].vg_thread_exists = False; in DRD_() local
531 DRD_(g_threadinfo)[tid].posix_thread_exists = False; in DRD_() local
533 DRD_(g_threadinfo)[tid].detached_posix_thread = False; in DRD_() local
535 tl_assert(!DRD_(g_threadinfo)[tid].detached_posix_thread); in DRD_()
536 DRD_(g_threadinfo)[tid].sg_first = NULL; in DRD_() local
537 DRD_(g_threadinfo)[tid].sg_last = NULL; in DRD_() local
552 DRD_(g_threadinfo)[tid].vg_thread_exists = False; in DRD_() local
554 if (DRD_(g_threadinfo)[tid].detached_posix_thread) in DRD_() local
560 DRD_(g_threadinfo)[tid].stack_min = DRD_(g_threadinfo)[tid].stack_max; in DRD_() local
568 DRD_(g_threadinfo)[tid].posix_thread_exists = False; in DRD_() local
595 tl_assert(DRD_(g_threadinfo)[tid].pt_threadid != INVALID_POSIX_THREADID); in DRD_()
613 tl_assert(DRD_(g_threadinfo)[tid].pt_threadid == INVALID_POSIX_THREADID in DRD_()
614 || DRD_(g_threadinfo)[tid].pt_threadid == ptid); in DRD_()
616 DRD_(g_threadinfo)[tid].posix_thread_exists = True; in DRD_() local
617 DRD_(g_threadinfo)[tid].pt_threadid = ptid; in DRD_() local
619 if (DRD_(g_threadinfo)[tid].creator_thread != DRD_INVALID_THREADID) { in DRD_() local
632 return ! DRD_(g_threadinfo)[tid].detached_posix_thread; in DRD_()
647 tl_assert(DRD_(g_threadinfo)[tid].pt_threadid != INVALID_POSIX_THREADID); in DRD_()
649 DRD_(g_threadinfo)[tid].detached_posix_thread = ! joinable; in DRD_() local
657 tl_assert(DRD_(g_threadinfo)[tid].pt_threadid != INVALID_POSIX_THREADID); in DRD_()
658 tl_assert(DRD_(g_threadinfo)[tid].pthread_create_nesting_level >= 0); in DRD_()
660 DRD_(g_threadinfo)[tid].pthread_create_nesting_level++; in DRD_() local
673 tl_assert(DRD_(g_threadinfo)[tid].pt_threadid != INVALID_POSIX_THREADID); in DRD_()
674 tl_assert(DRD_(g_threadinfo)[tid].pthread_create_nesting_level > 0); in DRD_()
676 DRD_(g_threadinfo)[tid].pthread_create_nesting_level--; in DRD_() local
692 if ((bindflag & DRD_(g_threadinfo)[tid].bind_guard_flag) == 0) { in DRD_()
693 DRD_(g_threadinfo)[tid].bind_guard_flag |= bindflag; in DRD_() local
708 if ((DRD_(g_threadinfo)[tid].bind_guard_flag & bindflag) != 0) { in DRD_()
709 DRD_(g_threadinfo)[tid].bind_guard_flag &= ~bindflag; in DRD_() local
721 return DRD_(g_threadinfo)[tid].name; in DRD_()
731 VG_(snprintf)(DRD_(g_threadinfo)[tid].name, in DRD_()
732 sizeof(DRD_(g_threadinfo)[tid].name), in DRD_()
736 VG_(snprintf)(DRD_(g_threadinfo)[tid].name, in DRD_()
737 sizeof(DRD_(g_threadinfo)[tid].name), in DRD_()
740 DRD_(g_threadinfo)[tid].name[sizeof(DRD_(g_threadinfo)[tid].name) - 1] = 0; in DRD_() local
799 return DRD_(g_threadinfo)[tid].synchr_nesting++; in DRD_()
809 tl_assert(DRD_(g_threadinfo)[tid].synchr_nesting >= 1); in DRD_()
810 return --DRD_(g_threadinfo)[tid].synchr_nesting; in DRD_()
817 return DRD_(g_threadinfo)[tid].synchr_nesting; in DRD_()
828 tl_assert(DRD_(sane_ThreadInfo)(&DRD_(g_threadinfo)[tid])); in thread_append_segment()
832 sg->thr_prev = DRD_(g_threadinfo)[tid].sg_last; in thread_append_segment()
834 if (DRD_(g_threadinfo)[tid].sg_last) in thread_append_segment() local
835 DRD_(g_threadinfo)[tid].sg_last->thr_next = sg; in thread_append_segment() local
836 DRD_(g_threadinfo)[tid].sg_last = sg; in thread_append_segment() local
837 if (DRD_(g_threadinfo)[tid].sg_first == NULL) in thread_append_segment() local
838 DRD_(g_threadinfo)[tid].sg_first = sg; in thread_append_segment() local
841 tl_assert(DRD_(sane_ThreadInfo)(&DRD_(g_threadinfo)[tid])); in thread_append_segment()
856 tl_assert(DRD_(sane_ThreadInfo)(&DRD_(g_threadinfo)[tid])); in thread_discard_segment()
863 if (sg == DRD_(g_threadinfo)[tid].sg_first) in thread_discard_segment()
864 DRD_(g_threadinfo)[tid].sg_first = sg->thr_next; in thread_discard_segment() local
865 if (sg == DRD_(g_threadinfo)[tid].sg_last) in thread_discard_segment()
866 DRD_(g_threadinfo)[tid].sg_last = sg->thr_prev; in thread_discard_segment() local
870 tl_assert(DRD_(sane_ThreadInfo)(&DRD_(g_threadinfo)[tid])); in thread_discard_segment()
884 latest_sg = DRD_(g_threadinfo)[tid].sg_last; in DRD_()
899 latest_sg = DRD_(g_threadinfo)[tid].sg_last; in DRD_()
921 latest_sg = DRD_(g_threadinfo)[i].sg_last; in DRD_()
946 latest_sg = DRD_(g_threadinfo)[i].sg_last; in DRD_()
992 for (sg = DRD_(g_threadinfo)[i].sg_first; in thread_discard_ordered_segments()
1047 for (sg = DRD_(g_threadinfo)[i].sg_first; sg; sg = sg->thr_next) { in thread_consistent_segment_ordering()
1055 for (sg = DRD_(g_threadinfo)[i].sg_last; sg; sg = sg->thr_prev) { in thread_consistent_segment_ordering()
1097 tl_assert(DRD_(sane_ThreadInfo)(&DRD_(g_threadinfo)[i])); in thread_merge_segments()
1100 for (sg = DRD_(g_threadinfo)[i].sg_first; sg; sg = sg->thr_next) { in thread_merge_segments()
1115 tl_assert(DRD_(sane_ThreadInfo)(&DRD_(g_threadinfo)[i])); in thread_merge_segments()
1133 last_sg = DRD_(g_threadinfo)[tid].sg_last; in DRD_()
1160 tl_assert(DRD_(g_threadinfo)[joiner].sg_first); in DRD_()
1161 tl_assert(DRD_(g_threadinfo)[joiner].sg_last); in DRD_()
1162 tl_assert(DRD_(g_threadinfo)[joinee].sg_first); in DRD_()
1163 tl_assert(DRD_(g_threadinfo)[joinee].sg_last); in DRD_()
1210 tl_assert(DRD_(g_threadinfo)[tid].sg_first); in thread_combine_vc_sync()
1211 tl_assert(DRD_(g_threadinfo)[tid].sg_last); in thread_combine_vc_sync()
1287 DRD_(g_threadinfo)[tid].is_recording_loads = enabled; in DRD_() local
1297 DRD_(g_threadinfo)[tid].is_recording_stores = enabled; in DRD_() local
1312 p = DRD_(g_threadinfo)[i].sg_first; in DRD_()
1318 DRD_(g_threadinfo)[i].valid, in DRD_()
1319 DRD_(g_threadinfo)[i].vg_thread_exists, in DRD_()
1320 DRD_(g_threadinfo)[i].vg_threadid, in DRD_()
1321 DRD_(g_threadinfo)[i].posix_thread_exists, in DRD_()
1322 DRD_(g_threadinfo)[i].pt_threadid, in DRD_()
1323 DRD_(g_threadinfo)[i].detached_posix_thread); in DRD_()
1365 for (q = DRD_(g_threadinfo)[i].sg_last; q; q = q->thr_prev) { in thread_report_conflicting_segments_segment()
1414 for (p = DRD_(g_threadinfo)[tid].sg_first; p; p = p->thr_next) { in DRD_()
1485 p = DRD_(g_threadinfo)[tid].sg_last; in thread_compute_conflict_set()
1502 for (q = DRD_(g_threadinfo)[j].sg_last; q; q = q->thr_prev) { in thread_compute_conflict_set()
1583 for (q = DRD_(g_threadinfo)[j].sg_last; in DRD_()
1631 p = DRD_(g_threadinfo)[tid].sg_last; in DRD_()
1635 for (q = DRD_(g_threadinfo)[j].sg_last; in DRD_()