• Home
  • Raw
  • Download

Lines Matching refs:DRD_

39 static void DRD_(cond_cleanup)(struct cond_info* p);
44 static Bool DRD_(s_report_signal_unlocked) = True;
45 static Bool DRD_(s_trace_cond);
50 void DRD_(cond_set_report_signal_unlocked)(const Bool r) in DRD_() function
52 DRD_(s_report_signal_unlocked) = r; in DRD_()
55 void DRD_(cond_set_trace)(const Bool trace_cond) in DRD_() function
57 DRD_(s_trace_cond) = trace_cond; in DRD_()
61 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond) in DRD_() function
67 p->cleanup = (void(*)(DrdClientobj*))(DRD_(cond_cleanup)); in DRD_()
77 static void DRD_(cond_cleanup)(struct cond_info* p) in DRD_() function
83 q = &(DRD_(clientobj_get)(p->mutex, ClientMutex)->mutex); in DRD_()
86 DRD_(thread_get_running_tid)(), in DRD_()
108 .tid = DRD_(thread_get_running_tid)(), in wrong_type()
123 p = &(DRD_(clientobj_get)(cond, ClientCondvar)->cond); in cond_get_or_allocate()
127 if (DRD_(clientobj_present)(cond, cond + 1)) in cond_get_or_allocate()
133 p = &(DRD_(clientobj_add)(cond, ClientCondvar)->cond); in cond_get_or_allocate()
134 DRD_(cond_initialize)(p, cond); in cond_get_or_allocate()
138 struct cond_info* DRD_(cond_get)(const Addr cond) in DRD_() function
141 return &(DRD_(clientobj_get)(cond, ClientCondvar)->cond); in DRD_()
145 void DRD_(cond_pre_init)(const Addr cond) in DRD_() function
149 if (DRD_(s_trace_cond)) in DRD_()
150 DRD_(trace_msg)("[%u] cond_init cond 0x%lx", in DRD_()
151 DRD_(thread_get_running_tid)(), cond); in DRD_()
153 p = DRD_(cond_get)(cond); in DRD_()
156 CondErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), .cond = cond }; in DRD_()
168 void DRD_(cond_post_destroy)(const Addr cond, const Bool destroy_succeeded) in DRD_() function
172 if (DRD_(s_trace_cond)) in DRD_()
173 DRD_(trace_msg)("[%u] cond_destroy cond 0x%lx", in DRD_()
174 DRD_(thread_get_running_tid)(), cond); in DRD_()
176 p = DRD_(cond_get)(cond); in DRD_()
179 CondErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), .cond = cond }; in DRD_()
190 CondErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), .cond = cond }; in DRD_()
200 DRD_(clientobj_remove)(p->a1, ClientCondvar); in DRD_()
207 void DRD_(cond_pre_wait)(const Addr cond, const Addr mutex) in DRD_() function
212 if (DRD_(s_trace_cond)) in DRD_()
213 DRD_(trace_msg)("[%u] cond_pre_wait cond 0x%lx", in DRD_()
214 DRD_(thread_get_running_tid)(), cond); in DRD_()
219 CondErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), .cond = cond }; in DRD_()
235 = { .tid = DRD_(thread_get_running_tid)(), in DRD_()
245 q = DRD_(mutex_get)(p->mutex); in DRD_()
247 && q->owner == DRD_(thread_get_running_tid)() && q->recursion_count > 0) in DRD_()
250 MutexErrInfo MEI = { DRD_(thread_get_running_tid)(), in DRD_()
260 DRD_(not_a_mutex)(p->mutex); in DRD_()
269 void DRD_(cond_post_wait)(const Addr cond) in DRD_() function
273 if (DRD_(s_trace_cond)) in DRD_()
274 DRD_(trace_msg)("[%u] cond_post_wait cond 0x%lx", in DRD_()
275 DRD_(thread_get_running_tid)(), cond); in DRD_()
277 p = DRD_(cond_get)(cond); in DRD_()
281 DRD_(thread_get_running_tid)(), cond, 0, DRD_INVALID_THREADID in DRD_()
305 const DrdThreadId drd_tid = DRD_(VgThreadIdToDrdThreadId)(vg_tid); in cond_signal()
311 if (DRD_(s_report_signal_unlocked) in cond_signal()
312 && ! DRD_(mutex_is_locked_by)(cond_p->mutex, drd_tid)) in cond_signal()
318 CondRaceErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), in cond_signal()
340 CondErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), .cond = cond }; in not_initialized()
349 void DRD_(cond_pre_signal)(Addr const cond) in DRD_() function
353 p = DRD_(cond_get)(cond); in DRD_()
354 if (DRD_(s_trace_cond)) in DRD_()
355 DRD_(trace_msg)("[%u] cond_signal cond 0x%lx", in DRD_()
356 DRD_(thread_get_running_tid)(), cond); in DRD_()
358 tl_assert(DRD_(pthread_cond_initializer)); in DRD_()
359 if (!p && VG_(memcmp)((void*)cond, (void*)DRD_(pthread_cond_initializer), in DRD_()
360 DRD_(pthread_cond_initializer_size)) != 0) in DRD_()
369 cond_signal(DRD_(thread_get_running_tid)(), p); in DRD_()
373 void DRD_(cond_pre_broadcast)(Addr const cond) in DRD_() function
377 if (DRD_(s_trace_cond)) in DRD_()
378 DRD_(trace_msg)("[%u] cond_broadcast cond 0x%lx", in DRD_()
379 DRD_(thread_get_running_tid)(), cond); in DRD_()
381 p = DRD_(cond_get)(cond); in DRD_()
382 tl_assert(DRD_(pthread_cond_initializer)); in DRD_()
383 if (!p && VG_(memcmp)((void*)cond, (void*)DRD_(pthread_cond_initializer), in DRD_()
384 DRD_(pthread_cond_initializer_size)) != 0) in DRD_()
393 cond_signal(DRD_(thread_get_running_tid)(), p); in DRD_()