Lines Matching refs:thr

312             Thread*     thr;  member
326 Thread* thr; /* doing the unlocking */ member
330 Thread* thr; /* doing the unlocking */ member
335 Thread* thr; /* doing the unlocking */ member
339 Thread* thr; member
345 Thread* thr; member
361 Thread* thr; member
406 tl_assert(xe->XE.Race.thr); in HG_()
410 xe->XE.Race.thr->locksetW, in HG_()
434 Thr* acc_thr = xe->XE.Race.thr->hbthr; in HG_()
469 void HG_(record_error_Race) ( Thread* thr, in HG_()
476 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
502 xe.XE.Race.thr = thr; in HG_()
519 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
520 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
526 VG_(maybe_record_error)( thr->coretid, in HG_()
530 void HG_(record_error_UnlockUnlocked) ( Thread* thr, Lock* lk ) in HG_()
533 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
537 xe.XE.UnlockUnlocked.thr in HG_()
538 = thr; in HG_()
542 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
543 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
544 VG_(maybe_record_error)( thr->coretid, in HG_()
548 void HG_(record_error_UnlockForeign) ( Thread* thr, in HG_()
552 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
557 xe.XE.UnlockForeign.thr = thr; in HG_()
562 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
563 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
564 VG_(maybe_record_error)( thr->coretid, in HG_()
568 void HG_(record_error_UnlockBogus) ( Thread* thr, Addr lock_ga ) in HG_()
571 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
574 xe.XE.UnlockBogus.thr = thr; in HG_()
577 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
578 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
579 VG_(maybe_record_error)( thr->coretid, in HG_()
584 Thread* thr, in HG_()
593 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
597 xe.XE.LockOrder.thr = thr; in HG_()
608 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
609 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
610 VG_(maybe_record_error)( thr->coretid, in HG_()
614 void HG_(record_error_PthAPIerror) ( Thread* thr, const HChar* fnname, in HG_()
618 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
623 xe.XE.PthAPIerror.thr = thr; in HG_()
628 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
629 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
630 VG_(maybe_record_error)( thr->coretid, in HG_()
634 void HG_(record_error_Misc_w_aux) ( Thread* thr, const HChar* errstr, in HG_()
638 tl_assert( HG_(is_sane_Thread)(thr) ); in HG_()
642 xe.XE.Misc.thr = thr; in HG_()
647 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) ); in HG_()
648 tl_assert( thr->coretid != VG_INVALID_THREADID ); in HG_()
649 VG_(maybe_record_error)( thr->coretid, in HG_()
653 void HG_(record_error_Misc) ( Thread* thr, const HChar* errstr ) in HG_()
655 HG_(record_error_Misc_w_aux)(thr, errstr, NULL, NULL); in HG_()
677 return xe1->XE.UnlockUnlocked.thr == xe2->XE.UnlockUnlocked.thr in HG_()
680 return xe1->XE.UnlockForeign.thr == xe2->XE.UnlockForeign.thr in HG_()
684 return xe1->XE.UnlockBogus.thr == xe2->XE.UnlockBogus.thr in HG_()
687 return xe1->XE.PthAPIerror.thr == xe2->XE.PthAPIerror.thr in HG_()
692 return xe1->XE.LockOrder.thr == xe2->XE.LockOrder.thr; in HG_()
694 return xe1->XE.Misc.thr == xe2->XE.Misc.thr in HG_()
735 static Bool announce_one_thread ( Thread* thr ) in announce_one_thread() argument
737 tl_assert(HG_(is_sane_Thread)(thr)); in announce_one_thread()
738 tl_assert(thr->errmsg_index >= 1); in announce_one_thread()
739 if (thr->announced) in announce_one_thread()
745 VG_(printf_xml)(" <hthreadid>%d</hthreadid>\n", thr->errmsg_index); in announce_one_thread()
746 if (thr->errmsg_index == 1) { in announce_one_thread()
747 tl_assert(thr->created_at == NULL); in announce_one_thread()
750 tl_assert(thr->created_at != NULL); in announce_one_thread()
751 VG_(pp_ExeContext)( thr->created_at ); in announce_one_thread()
761 if (thr->errmsg_index == 1) { in announce_one_thread()
762 tl_assert(thr->created_at == NULL); in announce_one_thread()
765 thr->errmsg_index); in announce_one_thread()
767 tl_assert(thr->created_at != NULL); in announce_one_thread()
769 thr->errmsg_index); in announce_one_thread()
770 VG_(pp_ExeContext)( thr->created_at ); in announce_one_thread()
776 thr->announced = True; in announce_one_thread()
873 announce_one_thread( xe->XE.Misc.thr ); in HG_()
876 announce_one_thread( xe->XE.LockOrder.thr ); in HG_()
879 announce_one_thread( xe->XE.PthAPIerror.thr ); in HG_()
882 announce_one_thread( xe->XE.UnlockBogus.thr ); in HG_()
885 announce_one_thread( xe->XE.UnlockForeign.thr ); in HG_()
889 announce_one_thread( xe->XE.UnlockUnlocked.thr ); in HG_()
892 announce_one_thread( xe->XE.Race.thr ); in HG_()
898 Thread* thr = get_admin_threads(); in HG_() local
899 while (thr) { in HG_()
900 if (thr->errmsg_index in HG_()
902 announce_one_thread (thr); in HG_()
905 thr = thr->admin; in HG_()
933 tl_assert( HG_(is_sane_Thread)( xe->XE.Misc.thr ) ); in HG_()
939 (Int)xe->XE.Misc.thr->errmsg_index, in HG_()
942 (Int)xe->XE.Misc.thr->errmsg_index ); in HG_()
954 (Int)xe->XE.Misc.thr->errmsg_index, in HG_()
968 tl_assert( HG_(is_sane_Thread)( xe->XE.LockOrder.thr ) ); in HG_()
975 (Int)xe->XE.LockOrder.thr->errmsg_index, in HG_()
979 (Int)xe->XE.LockOrder.thr->errmsg_index ); in HG_()
999 (Int)xe->XE.LockOrder.thr->errmsg_index, in HG_()
1037 tl_assert( HG_(is_sane_Thread)( xe->XE.PthAPIerror.thr ) ); in HG_()
1044 (Int)xe->XE.PthAPIerror.thr->errmsg_index, in HG_()
1047 (Int)xe->XE.PthAPIerror.thr->errmsg_index ); in HG_()
1056 (Int)xe->XE.PthAPIerror.thr->errmsg_index, in HG_()
1068 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockBogus.thr ) ); in HG_()
1075 (Int)xe->XE.UnlockBogus.thr->errmsg_index, in HG_()
1078 (Int)xe->XE.UnlockBogus.thr->errmsg_index ); in HG_()
1085 (Int)xe->XE.UnlockBogus.thr->errmsg_index, in HG_()
1097 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockForeign.thr ) ); in HG_()
1104 (Int)xe->XE.UnlockForeign.thr->errmsg_index, in HG_()
1108 (Int)xe->XE.UnlockForeign.thr->errmsg_index ); in HG_()
1119 (Int)xe->XE.UnlockForeign.thr->errmsg_index, in HG_()
1132 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockUnlocked.thr ) ); in HG_()
1139 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index, in HG_()
1142 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index ); in HG_()
1150 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index, in HG_()
1168 tl_assert( HG_(is_sane_Thread)( xe->XE.Race.thr )); in HG_()
1178 what, szB, (void*)err_ga, (Int)xe->XE.Race.thr->errmsg_index ); in HG_()
1180 (Int)xe->XE.Race.thr->errmsg_index ); in HG_()
1227 what, szB, (void*)err_ga, (Int)xe->XE.Race.thr->errmsg_index ); in HG_()