Home | History | Annotate | Download | only in helgrind

Lines Matching defs:thr

298             Thread*     thr;
312 Thread* thr; /* doing the unlocking */
316 Thread* thr; /* doing the unlocking */
321 Thread* thr; /* doing the unlocking */
325 Thread* thr;
331 Thread* thr;
347 Thread* thr;
392 tl_assert(xe->XE.Race.thr);
396 xe->XE.Race.thr->locksetW,
416 Thr* thrp = NULL;
420 Thr* acc_thr = xe->XE.Race.thr->hbthr;
455 void HG_(record_error_Race) ( Thread* thr,
462 tl_assert( HG_(is_sane_Thread)(thr) );
486 xe.XE.Race.thr = thr;
493 // FIXME: tid vs thr
503 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) );
504 tl_assert( thr->coretid != VG_INVALID_THREADID );
510 VG_(maybe_record_error)( thr->coretid,
514 void HG_(record_error_UnlockUnlocked) ( Thread* thr, Lock* lk )
517 tl_assert( HG_(is_sane_Thread)(thr) );
521 xe.XE.UnlockUnlocked.thr
522 = thr;
525 // FIXME: tid vs thr
526 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) );
527 tl_assert( thr->coretid != VG_INVALID_THREADID );
528 VG_(maybe_record_error)( thr->coretid,
532 void HG_(record_error_UnlockForeign) ( Thread* thr,
536 tl_assert( HG_(is_sane_Thread)(thr) );
541 xe.XE.UnlockForeign.thr = thr;
545 // FIXME: tid vs thr
546 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) );
547 tl_assert( thr->coretid != VG_INVALID_THREADID );
548 VG_(maybe_record_error)( thr->coretid,
552 void HG_(record_error_UnlockBogus) ( Thread* thr, Addr lock_ga )
555 tl_assert( HG_(is_sane_Thread)(thr) );
558 xe.XE.UnlockBogus.thr = thr;
560 // FIXME: tid vs thr
561 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) );
562 tl_assert( thr->coretid != VG_INVALID_THREADID );
563 VG_(maybe_record_error)( thr->coretid,
568 Thread* thr,
577 tl_assert( HG_(is_sane_Thread)(thr) );
581 xe.XE.LockOrder.thr = thr;
587 // FIXME: tid vs thr
588 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) );
589 tl_assert( thr->coretid != VG_INVALID_THREADID );
590 VG_(maybe_record_error)( thr->coretid,
594 void HG_(record_error_PthAPIerror) ( Thread* thr, const HChar* fnname,
598 tl_assert( HG_(is_sane_Thread)(thr) );
603 xe.XE.PthAPIerror.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_Misc_w_aux) ( Thread* thr, const HChar* errstr,
618 tl_assert( HG_(is_sane_Thread)(thr) );
622 xe.XE.Misc.thr = thr;
626 // FIXME: tid vs thr
627 tl_assert( HG_(is_sane_ThreadId)(thr->coretid) );
628 tl_assert( thr->coretid != VG_INVALID_THREADID );
629 VG_(maybe_record_error)( thr->coretid,
633 void HG_(record_error_Misc) ( Thread* thr, const HChar* errstr )
635 HG_(record_error_Misc_w_aux)(thr, errstr, NULL, NULL);
657 return xe1->XE.UnlockUnlocked.thr == xe2->XE.UnlockUnlocked.thr
660 return xe1->XE.UnlockForeign.thr == xe2->XE.UnlockForeign.thr
664 return xe1->XE.UnlockBogus.thr == xe2->XE.UnlockBogus.thr
667 return xe1->XE.PthAPIerror.thr == xe2->XE.PthAPIerror.thr
672 return xe1->XE.LockOrder.thr == xe2->XE.LockOrder.thr;
674 return xe1->XE.Misc.thr == xe2->XE.Misc.thr
710 /* Announce (that is, print the point-of-creation) of 'thr'. Only do
715 static Bool announce_one_thread ( Thread* thr )
717 tl_assert(HG_(is_sane_Thread)(thr));
718 tl_assert(thr->errmsg_index >= 1);
719 if (thr->announced)
725 VG_(printf_xml)(" <hthreadid>%d</hthreadid>\n", thr->errmsg_index);
726 if (thr->errmsg_index == 1) {
727 tl_assert(thr->created_at == NULL);
730 tl_assert(thr->created_at != NULL);
731 VG_(pp_ExeContext)( thr->created_at );
741 if (thr->errmsg_index == 1) {
742 tl_assert(thr->created_at == NULL);
745 thr->errmsg_index);
747 tl_assert(thr->created_at != NULL);
749 thr->errmsg_index);
750 VG_(pp_ExeContext)( thr->created_at );
756 thr->announced = True;
844 announce_one_thread( xe->XE.Misc.thr );
847 announce_one_thread( xe->XE.LockOrder.thr );
850 announce_one_thread( xe->XE.PthAPIerror.thr );
853 announce_one_thread( xe->XE.UnlockBogus.thr );
856 announce_one_thread( xe->XE.UnlockForeign.thr );
860 announce_one_thread( xe->XE.UnlockUnlocked.thr );
863 announce_one_thread( xe->XE.Race.thr );
893 tl_assert( HG_(is_sane_Thread)( xe->XE.Misc.thr ) );
899 (Int)xe->XE.Misc.thr->errmsg_index,
902 (Int)xe->XE.Misc.thr->errmsg_index );
914 (Int)xe->XE.Misc.thr->errmsg_index,
928 tl_assert( HG_(is_sane_Thread)( xe->XE.LockOrder.thr ) );
935 (Int)xe->XE.LockOrder.thr->errmsg_index,
939 (Int)xe->XE.LockOrder.thr->errmsg_index );
957 (Int)xe->XE.LockOrder.thr->errmsg_index,
992 tl_assert( HG_(is_sane_Thread)( xe->XE.PthAPIerror.thr ) );
999 (Int)xe->XE.PthAPIerror.thr->errmsg_index,
1002 (Int)xe->XE.PthAPIerror.thr->errmsg_index );
1011 (Int)xe->XE.PthAPIerror.thr->errmsg_index,
1023 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockBogus.thr ) );
1030 (Int)xe->XE.UnlockBogus.thr->errmsg_index,
1033 (Int)xe->XE.UnlockBogus.thr->errmsg_index );
1040 (Int)xe->XE.UnlockBogus.thr->errmsg_index,
1052 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockForeign.thr ) );
1059 (Int)xe->XE.UnlockForeign.thr->errmsg_index,
1063 (Int)xe->XE.UnlockForeign.thr->errmsg_index );
1079 (Int)xe->XE.UnlockForeign.thr->errmsg_index,
1096 tl_assert( HG_(is_sane_Thread)( xe->XE.UnlockUnlocked.thr ) );
1103 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index,
1106 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index );
1118 (Int)xe->XE.UnlockUnlocked.thr->errmsg_index,
1140 tl_assert( HG_(is_sane_Thread)( xe->XE.Race.thr ));
1150 what, szB, (void*)err_ga, (Int)xe->XE.Race.thr->errmsg_index );
1152 (Int)xe->XE.Race.thr->errmsg_index );
1199 what, szB, (void*)err_ga, (Int)xe->XE.Race.thr->errmsg_index );