Lines Matching refs:thr
295 Thread* thr; member
316 Thread* thr; /* doing the unlocking */ member
320 Thread* thr; /* doing the unlocking */ member
325 Thread* thr; /* doing the unlocking */ member
329 Thread* thr; member
335 Thread* thr; member
351 Thread* thr; member
396 tl_assert(xe->XE.Race.thr); in HG_()
400 xe->XE.Race.thr->locksetW, in HG_()
469 Thr* acc_thr = xe->XE.Race.thr->hbthr; in HG_()
504 void HG_(record_error_Race) ( Thread* thr, in HG_()
511 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
535 xe.XE.Race.thr = thr; in HG_()
553 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
554 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
560 VG_(maybe_record_error)( thr->coretid, in HG_()
564 void HG_(record_error_UnlockUnlocked) ( Thread* thr, Lock* lk ) in HG_()
567 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
571 xe.XE.UnlockUnlocked.thr in HG_()
572 = thr; in HG_()
576 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
577 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
578 VG_(maybe_record_error)( thr->coretid, in HG_()
582 void HG_(record_error_UnlockForeign) ( Thread* thr, in HG_()
586 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
591 xe.XE.UnlockForeign.thr = thr; in HG_()
596 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
597 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
598 VG_(maybe_record_error)( thr->coretid, in HG_()
602 void HG_(record_error_UnlockBogus) ( Thread* thr, Addr lock_ga ) in HG_()
605 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
608 xe.XE.UnlockBogus.thr = thr; in HG_()
611 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
612 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
613 VG_(maybe_record_error)( thr->coretid, in HG_()
618 Thread* thr, in HG_()
627 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
631 xe.XE.LockOrder.thr = thr; in HG_()
638 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
639 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
640 VG_(maybe_record_error)( thr->coretid, in HG_()
644 void HG_(record_error_PthAPIerror) ( Thread* thr, HChar* fnname, in HG_()
648 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
653 xe.XE.PthAPIerror.thr = thr; in HG_()
658 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
659 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
660 VG_(maybe_record_error)( thr->coretid, in HG_()
664 void HG_(record_error_Misc_w_aux) ( Thread* thr, HChar* errstr, in HG_()
668 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
672 xe.XE.Misc.thr = thr; in HG_()
677 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
678 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
679 VG_(maybe_record_error)( thr->coretid, in HG_()
683 void HG_(record_error_Misc) ( Thread* thr, HChar* errstr ) in HG_()
685 HG_(record_error_Misc_w_aux)(thr, errstr, NULL, NULL); in HG_()
707 return xe1->XE.UnlockUnlocked.thr == xe2->XE.UnlockUnlocked.thr in HG_()
710 return xe1->XE.UnlockForeign.thr == xe2->XE.UnlockForeign.thr in HG_()
714 return xe1->XE.UnlockBogus.thr == xe2->XE.UnlockBogus.thr in HG_()
717 return xe1->XE.PthAPIerror.thr == xe2->XE.PthAPIerror.thr in HG_()
722 return xe1->XE.LockOrder.thr == xe2->XE.LockOrder.thr; in HG_()
724 return xe1->XE.Misc.thr == xe2->XE.Misc.thr in HG_()
765 static Bool announce_one_thread ( Thread* thr ) in announce_one_thread() argument
767 tl_assert(HG_(is_sane_Thread)(thr)); in announce_one_thread()
768 tl_assert(thr->errmsg_index >= 1); in announce_one_thread()
769 if (thr->announced) in announce_one_thread()
775 VG_(printf_xml)(" <hthreadid>%d</hthreadid>\n", thr->errmsg_index); in announce_one_thread()
776 if (thr->errmsg_index == 1) { in announce_one_thread()
777 tl_assert(thr->created_at == NULL); in announce_one_thread()
780 tl_assert(thr->created_at != NULL); in announce_one_thread()
781 VG_(pp_ExeContext)( thr->created_at ); in announce_one_thread()
791 if (thr->errmsg_index == 1) { in announce_one_thread()
792 tl_assert(thr->created_at == NULL); in announce_one_thread()
795 thr->errmsg_index); in announce_one_thread()
797 tl_assert(thr->created_at != NULL); in announce_one_thread()
799 thr->errmsg_index); in announce_one_thread()
800 VG_(pp_ExeContext)( thr->created_at ); in announce_one_thread()
806 thr->announced = True; in announce_one_thread()
895 announce_one_thread( xe->XE.Misc.thr ); in HG_()
898 announce_one_thread( xe->XE.LockOrder.thr ); in HG_()
901 announce_one_thread( xe->XE.PthAPIerror.thr ); in HG_()
904 announce_one_thread( xe->XE.UnlockBogus.thr ); in HG_()
907 announce_one_thread( xe->XE.UnlockForeign.thr ); in HG_()
911 announce_one_thread( xe->XE.UnlockUnlocked.thr ); in HG_()
914 announce_one_thread( xe->XE.Race.thr ); in HG_()
944 tl_assert( HG_(is_sane_Thread)( xe->XE.Misc.thr ) ); in HG_()
950 (Int)xe->XE.Misc.thr->errmsg_index, in HG_()
953 (Int)xe->XE.Misc.thr->errmsg_index ); in HG_()
965 (Int)xe->XE.Misc.thr->errmsg_index, in HG_()
979 tl_assert( HG_(is_sane_Thread)( xe->XE.LockOrder.thr ) ); in HG_()
986 (Int)xe->XE.LockOrder.thr->errmsg_index, in HG_()
990 (Int)xe->XE.LockOrder.thr->errmsg_index ); in HG_()
1008 (Int)xe->XE.LockOrder.thr->errmsg_index, in HG_()
1043 tl_assert( HG_(is_sane_Thread)( xe->XE.PthAPIerror.thr ) ); in HG_()
1050 (Int)xe->XE.PthAPIerror.thr->errmsg_index, in HG_()
1053 (Int)xe->XE.PthAPIerror.thr->errmsg_index ); in HG_()
1062 (Int)xe->XE.PthAPIerror.thr->errmsg_index, in HG_()
1074 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockBogus.thr ) ); in HG_()
1081 (Int)xe->XE.UnlockBogus.thr->errmsg_index, in HG_()
1084 (Int)xe->XE.UnlockBogus.thr->errmsg_index ); in HG_()
1091 (Int)xe->XE.UnlockBogus.thr->errmsg_index, in HG_()
1103 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockForeign.thr ) ); in HG_()
1110 (Int)xe->XE.UnlockForeign.thr->errmsg_index, in HG_()
1114 (Int)xe->XE.UnlockForeign.thr->errmsg_index ); in HG_()
1130 (Int)xe->XE.UnlockForeign.thr->errmsg_index, in HG_()
1147 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockUnlocked.thr ) ); in HG_()
1154 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index, in HG_()
1157 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index ); in HG_()
1169 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index, in HG_()
1191 tl_assert( HG_(is_sane_Thread)( xe->XE.Race.thr )); in HG_()
1201 what, szB, (void*)err_ga, (Int)xe->XE.Race.thr->errmsg_index ); in HG_()
1203 (Int)xe->XE.Race.thr->errmsg_index ); in HG_()
1250 what, szB, (void*)err_ga, (Int)xe->XE.Race.thr->errmsg_index ); in HG_()