Home | History | Annotate | Download | only in m_syswrap

Lines Matching defs:tst

179    ThreadState *tst = VG_(get_ThreadState)(tid);
186 thread_state_to_vex(state, flavor, count, &tst->arch.vex);
191 find_stack_segment(tid, tst->arch.vex.guest_ESP);
193 return tst;
198 // The real thread will run start_thread_NORETURN(tst)
203 ThreadState *tst)
211 stack = (char *)allocstack(tst->tid);
214 *(uintptr_t *)stack = (uintptr_t)tst; // set parameter
280 ThreadState *tst = (ThreadState *)func_arg;
281 VexGuestX86State *vex = &tst->arch.vex;
287 semaphore_wait(tst->os_state.child_go);
303 vex->guest_EDX = tst->os_state.func_arg;
309 tst->os_state.pthread = self;
310 tst->os_state.lwpid = kport;
311 record_named_port(tst->tid, kport, MACH_PORT_RIGHT_SEND, "thread-%p");
316 tst->client_stack_highest_byte = stack+stacksize-1;
317 tst->client_stack_szB = stacksize;
333 find_stack_segment(tst->tid, sp);
339 //VG_TRACK ( pre_thread_ll_create, ptid, tst->tid );
343 semaphore_signal(tst->os_state.child_done);
347 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0,
348 start_thread_NORETURN, (Word)tst);
383 ThreadState *tst;
423 /* For whatever reason, tst->os_state.pthread appear to have a
436 // magic_delta = tst->os_state.pthread - self
447 tst = VG_(get_ThreadState)(tid);
449 if (0) VG_(printf)("wqthread_hijack reuse %s: tid %u, tst %p, "
450 "tst->os_state.pthread %#lx, self %#lx\n",
451 tst->os_state.pthread == self ? "SAME" : "DIFF",
452 tid, tst, tst->os_state.pthread, self);
454 vex = &tst->arch.vex;
455 vg_assert(tst->os_state.pthread - magic_delta == self);
459 tst = VG_(get_ThreadState)(VG_(alloc_ThreadState)());
460 vex = &tst->arch.vex;
461 allocstack(tst->tid);
492 ML_(wqthread_continue_NORETURN)(tst->tid);
496 tst->os_state.pthread = self;
497 tst->os_state.lwpid = kport;
498 record_named_port(tst->tid, kport, MACH_PORT_RIGHT_SEND, "wqthread-%p");
501 tst->client_stack_highest_byte = stack+stacksize-1;
502 tst->client_stack_szB = stacksize;
534 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0,
535 start_thread_NORETURN, (Word)tst);