Lines Matching refs:arg
53 static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret);
78 static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret) in handle_client_request() argument
85 || (VG_USERREQ__GDB_MONITOR_COMMAND == arg[0] in handle_client_request()
95 switch (arg[0]) in handle_client_request()
110 if (arg[1]) in handle_client_request()
111 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[2]/*size*/); in handle_client_request()
115 if (!DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) in handle_client_request()
127 DRD_(malloclike_block)(vg_tid, arg[1]/*addr*/, arg[3]/*newSize*/); in handle_client_request()
131 if (arg[1] && ! DRD_(freelike_block)(vg_tid, arg[1]/*addr*/, False)) in handle_client_request()
154 DRD_(thread_set_name)(drd_tid, (const HChar*)arg[1]); in handle_client_request()
160 DRD_(start_suppression)(arg[1], arg[1] + arg[2], "client"); in handle_client_request()
166 DRD_(finish_suppression)(arg[1], arg[1] + arg[2]); in handle_client_request()
170 DRD_(hb_happens_before)(drd_tid, arg[1]); in handle_client_request()
174 DRD_(hb_happens_after)(drd_tid, arg[1]); in handle_client_request()
178 if (arg[1]) in handle_client_request()
180 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
184 DRD_(rwlock_pre_init)(arg[1], user_rwlock); in handle_client_request()
188 if (arg[1]) in handle_client_request()
190 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
194 DRD_(rwlock_post_destroy)(arg[1], user_rwlock); in handle_client_request()
198 if (arg[1]) in handle_client_request()
200 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
204 tl_assert(arg[2] == !! arg[2]); in handle_client_request()
205 if (arg[2]) in handle_client_request()
207 DRD_(rwlock_pre_wrlock)(arg[1], user_rwlock); in handle_client_request()
208 DRD_(rwlock_post_wrlock)(arg[1], user_rwlock, True); in handle_client_request()
212 DRD_(rwlock_pre_rdlock)(arg[1], user_rwlock); in handle_client_request()
213 DRD_(rwlock_post_rdlock)(arg[1], user_rwlock, True); in handle_client_request()
218 if (arg[1]) in handle_client_request()
220 struct mutex_info* const mutex_p = DRD_(mutex_get)(arg[1]); in handle_client_request()
224 tl_assert(arg[2] == !! arg[2]); in handle_client_request()
225 DRD_(rwlock_pre_unlock)(arg[1], user_rwlock); in handle_client_request()
229 DRD_(semaphore_init)(arg[1], 0, arg[2]); in handle_client_request()
233 DRD_(semaphore_destroy)(arg[1]); in handle_client_request()
237 DRD_(semaphore_pre_wait)(arg[1]); in handle_client_request()
241 DRD_(semaphore_post_wait)(drd_tid, arg[1], True /* waited */); in handle_client_request()
245 DRD_(semaphore_pre_post)(drd_tid, arg[1]); in handle_client_request()
249 DRD_(pthread_cond_initializer) = (Addr)arg[1]; in handle_client_request()
250 DRD_(pthread_cond_initializer_size) = arg[2]; in handle_client_request()
254 DRD_(thread_new_segment)(DRD_(PtThreadIdToDrdThreadId)(arg[1])); in handle_client_request()
258 DRD_(start_tracing_address_range)(arg[1], arg[1] + arg[2], False); in handle_client_request()
262 DRD_(stop_tracing_address_range)(arg[1], arg[1] + arg[2]); in handle_client_request()
266 DRD_(thread_set_record_loads)(drd_tid, arg[1]); in handle_client_request()
270 DRD_(thread_set_record_stores)(drd_tid, arg[1]); in handle_client_request()
275 if (arg[1] != INVALID_POSIX_THREADID) in handle_client_request()
276 DRD_(thread_set_pthreadid)(drd_tid, arg[1]); in handle_client_request()
281 const DrdThreadId drd_joinable = DRD_(PtThreadIdToDrdThreadId)(arg[1]); in handle_client_request()
283 DRD_(thread_set_joinable)(drd_joinable, (Bool)arg[2]); in handle_client_request()
285 InvalidThreadIdInfo ITI = { DRD_(thread_get_running_tid)(), arg[1] }; in handle_client_request()
305 const DrdThreadId thread_to_join = DRD_(PtThreadIdToDrdThreadId)(arg[1]); in handle_client_request()
308 InvalidThreadIdInfo ITI = { DRD_(thread_get_running_tid)(), arg[1] }; in handle_client_request()
324 const DrdThreadId thread_to_cancel =DRD_(PtThreadIdToDrdThreadId)(arg[1]); in handle_client_request()
327 InvalidThreadIdInfo ITI = { DRD_(thread_get_running_tid)(), arg[1] }; in handle_client_request()
346 DRD_(mutex_init)(arg[1], arg[2]); in handle_client_request()
359 DRD_(mutex_post_destroy)(arg[1]); in handle_client_request()
364 DRD_(mutex_pre_lock)(arg[1], arg[2], arg[3]); in handle_client_request()
369 DRD_(mutex_post_lock)(arg[1], arg[2], False/*post_cond_wait*/); in handle_client_request()
374 DRD_(mutex_unlock)(arg[1], arg[2]); in handle_client_request()
382 DRD_(mutex_ignore_ordering)(arg[1]); in handle_client_request()
387 DRD_(spinlock_init_or_unlock)(arg[1]); in handle_client_request()
396 DRD_(cond_pre_init)(arg[1]); in handle_client_request()
409 DRD_(cond_post_destroy)(arg[1], arg[2]); in handle_client_request()
415 const Addr cond = arg[1]; in handle_client_request()
416 const Addr mutex = arg[2]; in handle_client_request()
417 const MutexT mutex_type = arg[3]; in handle_client_request()
426 const Addr cond = arg[1]; in handle_client_request()
427 const Addr mutex = arg[2]; in handle_client_request()
428 const Bool took_lock = arg[3]; in handle_client_request()
436 DRD_(cond_pre_signal)(arg[1]); in handle_client_request()
445 DRD_(cond_pre_broadcast)(arg[1]); in handle_client_request()
454 DRD_(semaphore_init)(arg[1], arg[2], arg[3]); in handle_client_request()
467 DRD_(semaphore_destroy)(arg[1]); in handle_client_request()
476 DRD_(semaphore_open)(arg[1], (HChar*)arg[2], arg[3], arg[4], arg[5]); in handle_client_request()
481 DRD_(semaphore_close)(arg[1]); in handle_client_request()
490 DRD_(semaphore_pre_wait)(arg[1]); in handle_client_request()
495 DRD_(semaphore_post_wait)(drd_tid, arg[1], arg[2]); in handle_client_request()
500 DRD_(semaphore_pre_post)(drd_tid, arg[1]); in handle_client_request()
505 DRD_(semaphore_post_post)(drd_tid, arg[1], arg[2]); in handle_client_request()
510 DRD_(barrier_init)(arg[1], arg[2], arg[3], arg[4]); in handle_client_request()
523 DRD_(barrier_destroy)(arg[1], arg[2]); in handle_client_request()
528 DRD_(barrier_pre_wait)(drd_tid, arg[1], arg[2]); in handle_client_request()
533 DRD_(barrier_post_wait)(drd_tid, arg[1], arg[2], arg[3], arg[4]); in handle_client_request()
538 DRD_(rwlock_pre_init)(arg[1], pthread_rwlock); in handle_client_request()
551 DRD_(rwlock_post_destroy)(arg[1], pthread_rwlock); in handle_client_request()
556 DRD_(rwlock_pre_rdlock)(arg[1], pthread_rwlock); in handle_client_request()
561 DRD_(rwlock_post_rdlock)(arg[1], pthread_rwlock, arg[2]); in handle_client_request()
566 DRD_(rwlock_pre_wrlock)(arg[1], pthread_rwlock); in handle_client_request()
571 DRD_(rwlock_post_wrlock)(arg[1], pthread_rwlock, arg[2]); in handle_client_request()
576 DRD_(rwlock_pre_unlock)(arg[1], pthread_rwlock); in handle_client_request()
584 if (arg[2] > 0) in handle_client_request()
585 DRD_(clean_memory)(arg[1], arg[2]); in handle_client_request()
594 { DRD_(thread_get_running_tid)(), (HChar*)arg[1] }; in handle_client_request()
609 { DRD_(thread_get_running_tid)(), (HChar*)arg[1] }; in handle_client_request()
620 DRD_(thread_entering_rtld_bind_guard)(drd_tid, arg[1]); in handle_client_request()
624 DRD_(thread_leaving_rtld_bind_clear)(drd_tid, arg[1]); in handle_client_request()
631 arg[0], arg[1]); in handle_client_request()