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
437 // magic_delta = tst->os_state.pthread - self
448 tst = VG_(get_ThreadState)(tid);
450 if (0) VG_(printf)("wqthread_hijack reuse %s: tid %u, tst %p, "
451 "tst->os_state.pthread %#lx, self %#lx\n",
452 tst->os_state.pthread == self ? "SAME" : "DIFF",
453 tid, tst, tst->os_state.pthread, self);
455 vex = &tst->arch.vex;
456 vg_assert(tst->os_state.pthread - magic_delta == self);
460 tst = VG_(get_ThreadState)(VG_(alloc_ThreadState)());
461 vex = &tst->arch.vex;
462 allocstack(tst->tid);
493 ML_(wqthread_continue_NORETURN)(tst->tid);
497 tst->os_state.pthread = self;
498 tst->os_state.lwpid = kport;
499 record_named_port(tst->tid, kport, MACH_PORT_RIGHT_SEND, "wqthread-%p");
502 tst->client_stack_highest_byte = stack+stacksize-1;
503 tst->client_stack_szB = stacksize;
535 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0,
536 start_thread_NORETURN, (Word)tst);