Home | History | Annotate | Download | only in m_syswrap

Lines Matching defs:tst

242    ThreadState *tst = VG_(get_ThreadState)(tid);
249 thread_state_to_vex(state, flavor, count, &tst->arch.vex);
254 find_stack_segment(tid, tst->arch.vex.guest_RSP);
256 return tst;
261 // The real thread will run start_thread_NORETURN(tst)
266 ThreadState *tst)
274 stack = (char *)allocstack(tst->tid);
279 mach->__rdi = (uintptr_t)tst; // arg1 = tst
340 ThreadState *tst = (ThreadState *)func_arg;
341 VexGuestAMD64State *vex = &tst->arch.vex;
347 semaphore_wait(tst->os_state.child_go);
362 vex->guest_RCX = tst->os_state.func_arg;
368 tst->os_state.pthread = self;
369 tst->os_state.lwpid = kport;
370 record_named_port(tst->tid, kport, MACH_PORT_RIGHT_SEND, "thread-%p");
375 tst->client_stack_highest_byte = stack+stacksize-1;
376 tst->client_stack_szB = stacksize;
392 find_stack_segment(tst->tid, sp);
398 //VG_TRACK ( pre_thread_ll_create, ptid, tst->tid );
402 semaphore_signal(tst->os_state.child_done);
406 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0,
407 start_thread_NORETURN, (Word)tst);
435 ThreadState *tst;
475 /* For whatever reason, tst->os_state.pthread appear to have a
488 // magic_delta = tst->os_state.pthread - self
499 tst = VG_(get_ThreadState)(tid);
501 if (0) VG_(printf)("wqthread_hijack reuse %s: tid %u, tst %p, "
502 "tst->os_state.pthread %#lx, self %#lx\n",
503 tst->os_state.pthread == self ? "SAME" : "DIFF",
504 tid, (void *)tst, tst->os_state.pthread, self);
506 vex = &tst->arch.vex;
507 vg_assert(tst->os_state.pthread - magic_delta == self);
511 tst = VG_(get_ThreadState)(VG_(alloc_ThreadState)());
512 vex = &tst->arch.vex;
513 allocstack(tst->tid);
544 ML_(wqthread_continue_NORETURN)(tst->tid);
548 tst->os_state.pthread = self;
549 tst->os_state.lwpid = kport;
550 record_named_port(tst->tid, kport, MACH_PORT_RIGHT_SEND, "wqthread-%p");
553 tst->client_stack_highest_byte = stack+stacksize-1;
554 tst->client_stack_szB = stacksize;
586 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0,
587 start_thread_NORETURN, (Word)tst);