Lines Matching refs:arg
55 static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret);
73 static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret) in handle_client_request() argument
81 switch (arg[0]) in handle_client_request()
96 if (arg[1]) in handle_client_request()
97 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[2]/*size*/); in handle_client_request()
101 if (!DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) in handle_client_request()
113 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[3]/*newSize*/); in handle_client_request()
117 if (arg[1] && ! DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) in handle_client_request()
140 DRD_(thread_set_name)(drd_tid, (const char*)arg[1]); in handle_client_request()
146 DRD_(start_suppression)(arg[1], arg[1] + arg[2], "client"); in handle_client_request()
152 DRD_(finish_suppression)(arg[1], arg[1] + arg[2]); in handle_client_request()
156 DRD_(hb_happens_before)(drd_tid, arg[1]); in handle_client_request()
160 DRD_(hb_happens_after)(drd_tid, arg[1]); in handle_client_request()
164 if (arg[1]) in handle_client_request()
166 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
170 DRD_(rwlock_pre_init)(arg[1], user_rwlock); in handle_client_request()
174 if (arg[1]) in handle_client_request()
176 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
180 DRD_(rwlock_post_destroy)(arg[1], user_rwlock); in handle_client_request()
184 if (arg[1]) in handle_client_request()
186 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
190 tl_assert(arg[2] == !! arg[2]); in handle_client_request()
191 if (arg[2]) in handle_client_request()
193 DRD_(rwlock_pre_wrlock)(arg[1], user_rwlock); in handle_client_request()
194 DRD_(rwlock_post_wrlock)(arg[1], user_rwlock, True); in handle_client_request()
198 DRD_(rwlock_pre_rdlock)(arg[1], user_rwlock); in handle_client_request()
199 DRD_(rwlock_post_rdlock)(arg[1], user_rwlock, True); in handle_client_request()
204 if (arg[1]) in handle_client_request()
206 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
210 tl_assert(arg[2] == !! arg[2]); in handle_client_request()
211 DRD_(rwlock_pre_unlock)(arg[1], user_rwlock); in handle_client_request()
215 DRD_(pthread_cond_initializer) = (Addr)arg[1]; in handle_client_request()
216 DRD_(pthread_cond_initializer_size) = arg[2]; in handle_client_request()
220 DRD_(thread_new_segment)(DRD_(PtThreadIdToDrdThreadId)(arg[1])); in handle_client_request()
224 DRD_(start_tracing_address_range)(arg[1], arg[1] + arg[2]); in handle_client_request()
228 DRD_(stop_tracing_address_range)(arg[1], arg[1] + arg[2]); in handle_client_request()
232 DRD_(thread_set_record_loads)(drd_tid, arg[1]); in handle_client_request()
236 DRD_(thread_set_record_stores)(drd_tid, arg[1]); in handle_client_request()
241 if (arg[1] != INVALID_POSIX_THREADID) in handle_client_request()
242 DRD_(thread_set_pthreadid)(drd_tid, arg[1]); in handle_client_request()
247 const DrdThreadId drd_joinable = DRD_(PtThreadIdToDrdThreadId)(arg[1]); in handle_client_request()
249 DRD_(thread_set_joinable)(drd_joinable, (Bool)arg[2]); in handle_client_request()
251 InvalidThreadIdInfo ITI = { DRD_(thread_get_running_tid)(), arg[1] }; in handle_client_request()
271 const DrdThreadId thread_to_join = DRD_(PtThreadIdToDrdThreadId)(arg[1]); in handle_client_request()
274 InvalidThreadIdInfo ITI = { DRD_(thread_get_running_tid)(), arg[1] }; in handle_client_request()
290 const DrdThreadId thread_to_cancel =DRD_(PtThreadIdToDrdThreadId)(arg[1]); in handle_client_request()
293 InvalidThreadIdInfo ITI = { DRD_(thread_get_running_tid)(), arg[1] }; in handle_client_request()
312 DRD_(mutex_init)(arg[1], arg[2]); in handle_client_request()
325 DRD_(mutex_post_destroy)(arg[1]); in handle_client_request()
330 DRD_(mutex_pre_lock)(arg[1], arg[2], arg[3]); in handle_client_request()
335 DRD_(mutex_post_lock)(arg[1], arg[2], False/*post_cond_wait*/); in handle_client_request()
340 DRD_(mutex_unlock)(arg[1], arg[2]); in handle_client_request()
349 DRD_(spinlock_init_or_unlock)(arg[1]); in handle_client_request()
358 DRD_(cond_pre_init)(arg[1]); in handle_client_request()
371 DRD_(cond_post_destroy)(arg[1]); in handle_client_request()
377 const Addr cond = arg[1]; in handle_client_request()
378 const Addr mutex = arg[2]; in handle_client_request()
379 const MutexT mutex_type = arg[3]; in handle_client_request()
388 const Addr cond = arg[1]; in handle_client_request()
389 const Addr mutex = arg[2]; in handle_client_request()
390 const Bool took_lock = arg[3]; in handle_client_request()
398 DRD_(cond_pre_signal)(arg[1]); in handle_client_request()
407 DRD_(cond_pre_broadcast)(arg[1]); in handle_client_request()
416 DRD_(semaphore_init)(arg[1], arg[2], arg[3]); in handle_client_request()
429 DRD_(semaphore_destroy)(arg[1]); in handle_client_request()
438 DRD_(semaphore_open)(arg[1], (Char*)arg[2], arg[3], arg[4], arg[5]); in handle_client_request()
443 DRD_(semaphore_close)(arg[1]); in handle_client_request()
452 DRD_(semaphore_pre_wait)(arg[1]); in handle_client_request()
457 DRD_(semaphore_post_wait)(drd_tid, arg[1], arg[2]); in handle_client_request()
462 DRD_(semaphore_pre_post)(drd_tid, arg[1]); in handle_client_request()
467 DRD_(semaphore_post_post)(drd_tid, arg[1], arg[2]); in handle_client_request()
472 DRD_(barrier_init)(arg[1], arg[2], arg[3], arg[4]); in handle_client_request()
485 DRD_(barrier_destroy)(arg[1], arg[2]); in handle_client_request()
490 DRD_(barrier_pre_wait)(drd_tid, arg[1], arg[2]); in handle_client_request()
495 DRD_(barrier_post_wait)(drd_tid, arg[1], arg[2], arg[3], arg[4]); in handle_client_request()
499 DRD_(rwlock_pre_init)(arg[1], pthread_rwlock); in handle_client_request()
503 DRD_(rwlock_post_destroy)(arg[1], pthread_rwlock); in handle_client_request()
508 DRD_(rwlock_pre_rdlock)(arg[1], pthread_rwlock); in handle_client_request()
513 DRD_(rwlock_post_rdlock)(arg[1], pthread_rwlock, arg[2]); in handle_client_request()
518 DRD_(rwlock_pre_wrlock)(arg[1], pthread_rwlock); in handle_client_request()
523 DRD_(rwlock_post_wrlock)(arg[1], pthread_rwlock, arg[2]); in handle_client_request()
528 DRD_(rwlock_pre_unlock)(arg[1], pthread_rwlock); in handle_client_request()
536 if (arg[2] > 0) in handle_client_request()
537 DRD_(clean_memory)(arg[1], arg[2]); in handle_client_request()
546 { DRD_(thread_get_running_tid)(), (Char*)arg[1] }; in handle_client_request()
561 { DRD_(thread_get_running_tid)(), (Char*)arg[1] }; in handle_client_request()
573 arg[0], arg[1]); in handle_client_request()