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