Home | History | Annotate | Download | only in helgrind

Lines Matching defs:tid

68 // FIXME: new_mem_w_tid ignores the supplied tid. (wtf?!)
246 ThreadId tid;
248 tid = map_threads_maybe_reverse_lookup_SLOW(thr);
250 = VG_(record_ExeContext)(tid, 0/*first_ip_delta*/);
302 ThreadId tid;
304 tid = map_threads_maybe_reverse_lookup_SLOW(thr);
306 = VG_(record_ExeContext)(tid, 0/*first_ip_delta*/);
636 ThreadId tid;
641 tid = thr->coretid;
642 tl_assert(HG_(is_sane_ThreadId)(tid));
643 return tid;
650 ThreadId tid = map_threads_maybe_reverse_lookup_SLOW( thr );
651 tl_assert(tid != VG_INVALID_THREADID);
652 tl_assert(map_threads[tid]);
653 tl_assert(map_threads[tid]->coretid == tid);
654 return tid;
676 Lock* map_locks_lookup_or_create ( LockKind lkk, Addr ga, ThreadId tid )
680 tl_assert(HG_(is_sane_ThreadId)(tid));
685 lock->appeared_at = VG_(record_ExeContext)( tid, 0 );
1353 static void evh__start_client_code ( ThreadId tid, ULong nDisp ) {
1354 if (0) VG_(printf)("start %d %llu\n", (Int)tid, nDisp);
1356 current_Thread = map_threads_lookup( tid );
1363 static void evh__stop_client_code ( ThreadId tid, ULong nDisp ) {
1364 if (0) VG_(printf)(" stop %d %llu\n", (Int)tid, nDisp);
1410 void evh__new_mem_w_tid ( Addr a, SizeT len, ThreadId tid ) {
1608 /* This is called immediately after fork, for the child only. 'tid'
1613 void evh__atfork_child ( ThreadId tid )
1620 /* Clean up all other slots except 'tid'. */
1622 if (i == tid)
1706 void evh__pre_mem_read ( CorePart part, ThreadId tid, Char* s,
1711 (Int)tid, s, (void*)a, size );
1712 shadow_mem_cread_range( map_threads_lookup(tid), a, size);
1718 void evh__pre_mem_read_asciiz ( CorePart part, ThreadId tid,
1723 (Int)tid, s, (void*)a );
1731 shadow_mem_cread_range( map_threads_lookup(tid), a, len+1 );
1737 void evh__pre_mem_write ( CorePart part, ThreadId tid, Char* s,
1741 (Int)tid, s, (void*)a, size );
1742 shadow_mem_cwrite_range( map_threads_lookup(tid), a, size);
1864 void evh__HG_PTHREAD_MUTEX_INIT_POST( ThreadId tid,
1869 (Int)tid, mbRec, (void*)mutex );
1872 (Addr)mutex, tid );
1878 void evh__HG_PTHREAD_MUTEX_DESTROY_PRE( ThreadId tid, void* mutex )
1884 (Int)tid, (void*)mutex );
1886 thr = map_threads_maybe_lookup( tid );
1924 static void evh__HG_PTHREAD_MUTEX_LOCK_PRE ( ThreadId tid,
1933 (Int)tid, (void*)mutex );
1936 thr = map_threads_maybe_lookup( tid );
1967 static void evh__HG_PTHREAD_MUTEX_LOCK_POST ( ThreadId tid, void* mutex )
1973 (Int)tid, (void*)mutex );
1975 thr = map_threads_maybe_lookup( tid );
1985 static void evh__HG_PTHREAD_MUTEX_UNLOCK_PRE ( ThreadId tid, void* mutex )
1991 (Int)tid, (void*)mutex );
1993 thr = map_threads_maybe_lookup( tid );
1999 static void evh__HG_PTHREAD_MUTEX_UNLOCK_POST ( ThreadId tid, void* mutex )
2005 (Int)tid, (void*)mutex );
2006 thr = map_threads_maybe_lookup( tid );
2020 static void evh__HG_PTHREAD_SPIN_INIT_OR_UNLOCK_PRE( ThreadId tid,
2032 (Int)tid, (void*)slock );
2034 thr = map_threads_maybe_lookup( tid );
2048 static void evh__HG_PTHREAD_SPIN_INIT_OR_UNLOCK_POST( ThreadId tid,
2059 (Int)tid, (void*)slock );
2063 map_locks_lookup_or_create( LK_nonRec, (Addr)slock, tid );
2067 static void evh__HG_PTHREAD_SPIN_LOCK_PRE( ThreadId tid,
2070 evh__HG_PTHREAD_MUTEX_LOCK_PRE( tid, slock, isTryLock );
2073 static void evh__HG_PTHREAD_SPIN_LOCK_POST( ThreadId tid,
2076 evh__HG_PTHREAD_MUTEX_LOCK_POST( tid, slock );
2079 static void evh__HG_PTHREAD_SPIN_DESTROY_PRE( ThreadId tid,
2082 evh__HG_PTHREAD_MUTEX_DESTROY_PRE( tid, slock );
2153 static void map_cond_to_CVInfo_delete ( ThreadId tid, void* cond ) {
2157 thr = map_threads_maybe_lookup( tid );
2180 static void evh__HG_PTHREAD_COND_SIGNAL_PRE ( ThreadId tid, void* cond )
2182 /* 'tid' has signalled on 'cond'. As per the comment above, bind
2194 (Int)tid, (void*)cond );
2196 thr = map_threads_maybe_lookup( tid );
2261 static Bool evh__HG_PTHREAD_COND_WAIT_PRE ( ThreadId tid,
2272 (Int)tid, (void*)cond, (void*)mutex );
2274 thr = map_threads_maybe_lookup( tid );
2328 static void evh__HG_PTHREAD_COND_WAIT_POST ( ThreadId tid,
2340 (Int)tid, (void*)cond, (void*)mutex );
2342 thr = map_threads_maybe_lookup( tid );
2377 static void evh__HG_PTHREAD_COND_DESTROY_PRE ( ThreadId tid,
2386 (Int)tid, (void*)cond );
2388 map_cond_to_CVInfo_delete( tid, cond );
2398 void evh__HG_PTHREAD_RWLOCK_INIT_POST( ThreadId tid, void* rwl )
2402 (Int)tid, (void*)rwl );
2403 map_locks_lookup_or_create( LK_rdwr, (Addr)rwl, tid );
2409 void evh__HG_PTHREAD_RWLOCK_DESTROY_PRE( ThreadId tid, void* rwl )
2415 (Int)tid, (void*)rwl );
2417 thr = map_threads_maybe_lookup( tid );
2456 void evh__HG_PTHREAD_RWLOCK_LOCK_PRE ( ThreadId tid,
2466 (Int)tid, (Int)isW, (void*)rwl );
2470 thr = map_threads_maybe_lookup( tid );
2484 void evh__HG_PTHREAD_RWLOCK_LOCK_POST ( ThreadId tid, void* rwl, Word isW )
2490 (Int)tid, (Int)isW, (void*)rwl );
2493 thr = map_threads_maybe_lookup( tid );
2504 static void evh__HG_PTHREAD_RWLOCK_UNLOCK_PRE ( ThreadId tid, void* rwl )
2510 (Int)tid, (void*)rwl );
2512 thr = map_threads_maybe_lookup( tid );
2518 static void evh__HG_PTHREAD_RWLOCK_UNLOCK_POST ( ThreadId tid, void* rwl )
2524 (Int)tid, (void*)rwl );
2525 thr = map_threads_maybe_lookup( tid );
2621 static void evh__HG_POSIX_SEM_DESTROY_PRE ( ThreadId tid, void* sem )
2628 (Int)tid, (void*)sem );
2650 void evh__HG_POSIX_SEM_INIT_POST ( ThreadId tid, void* sem, UWord value )
2657 (Int)tid, (void*)sem, value );
2659 thr = map_threads_maybe_lookup( tid );
2690 static void evh__HG_POSIX_SEM_POST_PRE ( ThreadId tid, void* sem )
2692 /* 'tid' has posted on 'sem'. Create a new SO, do a strong send to
2706 (Int)tid, (void*)sem );
2708 thr = map_threads_maybe_lookup( tid );
2721 static void evh__HG_POSIX_SEM_WAIT_POST ( ThreadId tid, void* sem )
2734 (Int)tid, (void*)sem );
2736 thr = map_threads_maybe_lookup( tid );
2825 static void evh__HG_PTHREAD_BARRIER_INIT_PRE ( ThreadId tid,
2835 "(tid=%d, barrier=%p, count=%lu, resizable=%lu)\n",
2836 (Int)tid, (void*)barrier, count, resizable );
2838 thr = map_threads_maybe_lookup( tid );
2882 static void evh__HG_PTHREAD_BARRIER_DESTROY_PRE ( ThreadId tid,
2893 "(tid=%d, barrier=%p)\n",
2894 (Int)tid, (void*)barrier );
2896 thr = map_threads_maybe_lookup( tid );
2963 static void evh__HG_PTHREAD_BARRIER_WAIT_PRE ( ThreadId tid,
3012 "(tid=%d, barrier=%p)\n",
3013 (Int)tid, (void*)barrier );
3015 thr = map_threads_maybe_lookup( tid );
3045 static void evh__HG_PTHREAD_BARRIER_RESIZE_PRE ( ThreadId tid,
3055 "(tid=%d, barrier=%p, newcount=%lu)\n",
3056 (Int)tid, (void*)barrier, newcount );
3058 thr = map_threads_maybe_lookup( tid );
3159 void evh__HG_USERSO_SEND_PRE ( ThreadId tid, UWord usertag )
3161 /* TID is just about to notionally sent a message on a notional
3175 (Int)tid, usertag );
3177 thr = map_threads_maybe_lookup( tid );
3187 void evh__HG_USERSO_RECV_POST ( ThreadId tid, UWord usertag )
3189 /* TID has just notionally received a message from a notional
3200 (Int)tid, usertag );
3202 thr = map_threads_maybe_lookup( tid );
3215 void evh__HG_USERSO_FORGET_ALL ( ThreadId tid, UWord usertag )
3217 /* TID declares that any happens-before edges notionally stored in
3224 (Int)tid, usertag );
3877 void* handle_alloc ( ThreadId tid,
3897 md->where = VG_(record_ExeContext)( tid, 0 );
3898 md->thr = map_threads_lookup( tid );
3913 static void* hg_cli__malloc ( ThreadId tid, SizeT n ) {
3915 return handle_alloc ( tid, n, VG_(clo_alignment),
3918 static void* hg_cli____builtin_new ( ThreadId tid, SizeT n ) {
3920 return handle_alloc ( tid, n, VG_(clo_alignment),
3923 static void* hg_cli____builtin_vec_new ( ThreadId tid, SizeT n ) {
3925 return handle_alloc ( tid, n, VG_(clo_alignment),
3928 static void* hg_cli__memalign ( ThreadId tid, SizeT align, SizeT n ) {
3930 return handle_alloc ( tid, n, align,
3933 static void* hg_cli__calloc ( ThreadId tid, SizeT nmemb, SizeT size1 ) {
3935 return handle_alloc ( tid, nmemb*size1, VG_(clo_alignment),
3943 static void handle_free ( ThreadId tid, void* p )
3970 static void hg_cli__free ( ThreadId tid, void* p ) {
3971 handle_free(tid, p);
3973 static void hg_cli____builtin_delete ( ThreadId tid, void* p ) {
3974 handle_free(tid, p);
3976 static void hg_cli____builtin_vec_delete ( ThreadId tid, void* p ) {
3977 handle_free(tid, p);
3981 static void* hg_cli__realloc ( ThreadId tid, void* payloadV, SizeT new_size )
3998 md->where = VG_(record_ExeContext)(tid, 0);
4005 md->where = VG_(record_ExeContext)(tid, 0);
4045 md_new->where = VG_(record_ExeContext)( tid, 0 );
4048 md_new->thr = map_threads_lookup( tid );
4057 static SizeT hg_cli_malloc_usable_size ( ThreadId tid, void* p )
4563 Bool hg_handle_client_request ( ThreadId tid, UWord* args, UWord* ret)
4634 VG_(printf)("SET_MY_PTHREAD_T (tid %d): pthread_t = %p\n", (Int)tid,
4637 my_thr = map_threads_maybe_lookup( tid );
4638 /* This assertion should hold because the map_threads (tid to
4658 my_thr = map_threads_maybe_lookup( tid );
4665 /* This thread (tid) has completed a join with the quitting
4671 VG_(printf)("NOTIFY_JOIN_COMPLETE (tid %d): quitter = %p\n", (Int)tid,
4687 evh__HG_PTHREAD_JOIN_POST( tid, thr_q );
4698 evh__HG_PTHREAD_MUTEX_INIT_POST( tid, (void*)args[1], args[2] );
4702 evh__HG_PTHREAD_MUTEX_DESTROY_PRE( tid, (void*)args[1] );
4706 evh__HG_PTHREAD_MUTEX_UNLOCK_PRE( tid, (void*)args[1] );
4710 evh__HG_PTHREAD_MUTEX_UNLOCK_POST( tid, (void*)args[1] );
4714 evh__HG_PTHREAD_MUTEX_LOCK_PRE( tid, (void*)args[1], args[2] );
4718 evh__HG_PTHREAD_MUTEX_LOCK_POST( tid, (void*)args[1] );
4725 evh__HG_PTHREAD_COND_SIGNAL_PRE( tid, (void*)args[1] );
4733 = evh__HG_PTHREAD_COND_WAIT_PRE( tid, (void*)args[1],
4741 evh__HG_PTHREAD_COND_DESTROY_PRE( tid, (void*)args[1] );
4747 evh__HG_PTHREAD_COND_WAIT_POST( tid,
4752 evh__HG_PTHREAD_RWLOCK_INIT_POST( tid, (void*)args[1] );
4756 evh__HG_PTHREAD_RWLOCK_DESTROY_PRE( tid, (void*)args[1] );
4761 evh__HG_PTHREAD_RWLOCK_LOCK_PRE( tid, (void*)args[1],
4767 evh__HG_PTHREAD_RWLOCK_LOCK_POST( tid, (void*)args[1], args[2] );
4771 evh__HG_PTHREAD_RWLOCK_UNLOCK_PRE( tid, (void*)args[1] );
4775 evh__HG_PTHREAD_RWLOCK_UNLOCK_POST( tid, (void*)args[1] );
4779 evh__HG_POSIX_SEM_INIT_POST( tid, (void*)args[1], args[2] );
4783 evh__HG_POSIX_SEM_DESTROY_PRE( tid, (void*)args[1] );
4787 evh__HG_POSIX_SEM_POST_PRE( tid, (void*)args[1] );
4791 evh__HG_POSIX_SEM_WAIT_POST( tid, (void*)args[1] );
4796 evh__HG_PTHREAD_BARRIER_INIT_PRE( tid, (void*)args[1],
4802 evh__HG_PTHREAD_BARRIER_RESIZE_PRE ( tid, (void*)args[1],
4808 evh__HG_PTHREAD_BARRIER_WAIT_PRE( tid, (void*)args[1] );
4813 evh__HG_PTHREAD_BARRIER_DESTROY_PRE( tid, (void*)args[1] );
4818 evh__HG_PTHREAD_SPIN_INIT_OR_UNLOCK_PRE( tid, (void*)args[1] );
4823 evh__HG_PTHREAD_SPIN_INIT_OR_UNLOCK_POST( tid, (void*)args[1] );
4828 evh__HG_PTHREAD_SPIN_LOCK_PRE( tid, (void*)args[1], args[2] );
4833 evh__HG_PTHREAD_SPIN_LOCK_POST( tid, (void*)args[1] );
4838 evh__HG_PTHREAD_SPIN_DESTROY_PRE( tid, (void*)args[1] );
4845 Thread* thr = map_threads_maybe_lookup( tid );
4857 evh__HG_USERSO_SEND_PRE( tid, args[1] );
4862 evh__HG_USERSO_RECV_POST( tid, args[1] );
4867 evh__HG_USERSO_FORGET_ALL( tid, args[1] );
5070 ThreadId tid;
5075 tid = map_threads_maybe_reverse_lookup_SLOW(thr);
5076 nActual = (UWord)VG_(get_StackTrace)( tid, frames, (UInt)nRequest,
5087 ThreadId tid;
5092 tid = map_threads_maybe_reverse_lookup_SLOW(thr);
5093 /* this will assert if tid is invalid */
5094 ec = VG_(record_ExeContext)( tid, 0 );