Home
last modified time | relevance | path

Searched refs:os_state (Results 1 – 25 of 33) sorted by relevance

12

/external/valgrind/coregrind/m_syswrap/
Dsyswrap-x86-darwin.c287 semaphore_wait(tst->os_state.child_go); in pthread_hijack()
303 vex->guest_EDX = tst->os_state.func_arg; in pthread_hijack()
309 tst->os_state.pthread = self; in pthread_hijack()
310 tst->os_state.lwpid = kport; in pthread_hijack()
343 semaphore_signal(tst->os_state.child_done); in pthread_hijack()
347 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0, in pthread_hijack()
451 tst->os_state.pthread == self ? "SAME" : "DIFF", in wqthread_hijack()
452 tid, tst, tst->os_state.pthread, self); in wqthread_hijack()
455 vg_assert(tst->os_state.pthread - magic_delta == self); in wqthread_hijack()
496 tst->os_state.pthread = self; in wqthread_hijack()
[all …]
Dsyswrap-amd64-darwin.c347 semaphore_wait(tst->os_state.child_go); in pthread_hijack()
362 vex->guest_RCX = tst->os_state.func_arg; in pthread_hijack()
368 tst->os_state.pthread = self; in pthread_hijack()
369 tst->os_state.lwpid = kport; in pthread_hijack()
402 semaphore_signal(tst->os_state.child_done); in pthread_hijack()
406 call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0, in pthread_hijack()
503 tst->os_state.pthread == self ? "SAME" : "DIFF", in wqthread_hijack()
504 tid, (void *)tst, tst->os_state.pthread, self); in wqthread_hijack()
507 vg_assert(tst->os_state.pthread - magic_delta == self); in wqthread_hijack()
548 tst->os_state.pthread = self; in wqthread_hijack()
[all …]
Dsyswrap-solaris.c85 VG_(threads)[tid].os_state.daemon_thread == count_daemon) in count_living_daemon_threads()
128 tst->os_state.lwpid = VG_(gettid)(); in thread_wrapper()
129 tst->os_state.threadgroup = VG_(getpid)(); in thread_wrapper()
178 = VALGRIND_STACK_REGISTER(tst->os_state.valgrind_stack_base, in run_a_thread_NORETURN()
179 tst->os_state.valgrind_stack_init_SP)); in run_a_thread_NORETURN()
192 Addr a = tst->os_state.schedctl_data; in run_a_thread_NORETURN()
197 if (tst->os_state.stk_id != (UWord)-1) in run_a_thread_NORETURN()
198 VG_(deregister_stack)(tst->os_state.stk_id); in run_a_thread_NORETURN()
319 if (tst->os_state.valgrind_stack_base == 0) in ML_()
320 vg_assert(tst->os_state.valgrind_stack_init_SP == 0); in ML_()
[all …]
Dsyswrap-arm64-linux.c256 ctst->os_state.parent = ptid; in do_clone()
271 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-darwin.c111 tst->os_state.lwpid = VG_(gettid)(); in thread_wrapper()
112 tst->os_state.threadgroup = VG_(getpid)(); in thread_wrapper()
148 if (tst->os_state.valgrind_stack_base == 0) in allocstack()
149 vg_assert(tst->os_state.valgrind_stack_init_SP == 0); in allocstack()
151 if (tst->os_state.valgrind_stack_base != 0) in allocstack()
152 vg_assert(tst->os_state.valgrind_stack_init_SP != 0); in allocstack()
156 if (tst->os_state.valgrind_stack_base == 0) { in allocstack()
159 tst->os_state.valgrind_stack_base = (Addr)stack; in allocstack()
160 tst->os_state.valgrind_stack_init_SP = initial_SP; in allocstack()
166 (void*)tst->os_state.valgrind_stack_base, in allocstack()
[all …]
Dsyswrap-ppc64-linux.c443 ctst->os_state.parent = ptid; in do_clone()
458 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-ppc32-linux.c293 ctst->os_state.parent = ptid; in do_clone()
308 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-linux.c93 tst->os_state.lwpid = VG_(gettid)(); in thread_wrapper()
97 tst->os_state.threadgroup = VG_(getpid)(); in thread_wrapper()
151 = VALGRIND_STACK_REGISTER (tst->os_state.valgrind_stack_base, in run_a_thread_NORETURN()
152 tst->os_state.valgrind_stack_init_SP)); in run_a_thread_NORETURN()
212 vg_assert(sizeof(tst->os_state.exitcode) == sizeof(Word)); in run_a_thread_NORETURN()
233 : "n" (VgTs_Empty), "n" (__NR_exit), "m" (tst->os_state.exitcode) in run_a_thread_NORETURN()
243 : "n" (VgTs_Empty), "n" (__NR_exit), "m" (tst->os_state.exitcode) in run_a_thread_NORETURN()
255 : "r" (vgts_empty), "n" (__NR_exit), "m" (tst->os_state.exitcode) in run_a_thread_NORETURN()
266 : "r" (VgTs_Empty), "n" (__NR_exit), "m" (tst->os_state.exitcode) in run_a_thread_NORETURN()
276 : "r" (VgTs_Empty), "n" (__NR_exit), "m" (tst->os_state.exitcode) in run_a_thread_NORETURN()
[all …]
Dsyswrap-mips64-linux.c225 ctst->os_state.parent = ptid; in do_clone()
229 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-s390x-linux.c253 ctst->os_state.parent = ptid; in do_clone()
260 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-amd64-linux.c247 ctst->os_state.parent = ptid; in do_clone()
262 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-arm-linux.c197 ctst->os_state.parent = ptid; in do_clone()
211 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-mips32-linux.c268 ctst->os_state.parent = ptid; in do_clone()
282 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-x86-solaris.c95 UWord *stack = (UWord*)tst->os_state.valgrind_stack_init_SP; in ML_()
389 tst->os_state.thrptr = uc->uc_mcontext.gregs[VKI_ESP]; in ML_()
588 Addr base = tst->os_state.thrptr; in ML_()
Dsyswrap-tilegx-linux.c359 ctst->os_state.parent = ptid; in do_clone()
373 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-x86-linux.c258 ctst->os_state.parent = ptid; in do_clone()
273 ctst->os_state.threadgroup = ptst->os_state.threadgroup; in do_clone()
Dsyswrap-main.c376 if (tst->os_state.in_door_return) in do_syscall_for_client()
2683 if (tst->os_state.in_door_return) { in VG_()
2774 if (tst->os_state.in_door_return) { in VG_()
2827 if (tst->os_state.in_door_return) in VG_()
2856 vg_assert(tst->os_state.wq_jmpbuf_valid); // check this BEFORE post_syscall in ML_()
/external/valgrind/coregrind/m_sigframe/
Dsigframe-solaris.c148 tst->os_state.oldcontext = &frame->ucontext; in VG_()
205 if (on_altstack && tst->os_state.ustack in VG_()
206 && VG_(am_is_valid_for_client)((Addr)tst->os_state.ustack, in VG_()
207 sizeof(*tst->os_state.ustack), in VG_()
217 *tst->os_state.ustack = altstack; in VG_()
218 VG_TRACK(post_mem_write, Vg_CoreSignal, tid, (Addr)tst->os_state.ustack, in VG_()
219 sizeof(*tst->os_state.ustack)); in VG_()
/external/valgrind/coregrind/m_scheduler/
Dscheduler.c368 == VG_(threads)[tid].os_state.lwpid); in VG_()
405 tid, VG_(threads)[tid].os_state.lwpid); in VG_()
413 thread_abort(VG_(threads)[tid].os_state.lwpid); in VG_()
418 Int r = VG_(tkill)(VG_(threads)[tid].os_state.lwpid, VG_SIGVGKILL); in VG_()
446 vg_assert(VG_(threads)[tid].os_state.lwpid == VG_(gettid)()); in VG_()
489 tst->os_state.lwpid = 0; in os_state_clear()
490 tst->os_state.threadgroup = 0; in os_state_clear()
494 tst->os_state.post_mach_trap_fn = NULL; in os_state_clear()
495 tst->os_state.pthread = 0; in os_state_clear()
496 tst->os_state.func_arg = 0; in os_state_clear()
[all …]
/external/valgrind/coregrind/
Dm_threadstate.c67 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].os_state.exitcode, in VG_()
68 sizeof(VG_(threads)[tid].os_state.exitcode), in VG_()
171 && VG_(threads)[tid].os_state.lwpid == lwp) in VG_()
Dm_libcassert.c348 stacktop = tst->os_state.valgrind_stack_init_SP; in show_sched_status_wrk()
368 = (VgStack*)VG_(threads)[i].os_state.valgrind_stack_base; in show_sched_status_wrk()
376 VG_(threads)[i].os_state.lwpid); in show_sched_status_wrk()
Dpub_core_threadstate.h388 ThreadOSstate os_state; member
/external/valgrind/coregrind/m_gdbserver/
Dtarget.c79 image_ptid (ptid), ts->os_state.lwpid in valgrind_update_threads()
83 ptid = ts->os_state.lwpid; in valgrind_update_threads()
314 wptid = tst->os_state.lwpid; in valgrind_wait()
318 if (tst->os_state.lwpid) in valgrind_wait()
770 use_general, found, tid, tst->os_state.lwpid); in set_desired_inferior()
Dm_gdbserver.c1025 gdbserver_process_exit_encountered ('W', VG_(threads)[tid].os_state.exitcode); in VG_()
1029 gdbserver_process_exit_encountered ('X', VG_(threads)[tid].os_state.fatalsig); in VG_()
/external/valgrind/coregrind/m_coredump/
Dcoredump-solaris.c493 prs->pr_who = tst->os_state.lwpid; in fill_prstatus()
524 psinfo->pr_lwp.pr_lwpid = tst->os_state.lwpid; in fill_psinfo()
551 pstatus->pr_lwp.pr_lwpid = tst->os_state.lwpid; in fill_pstatus()
720 lwp->pr_lwpid = tst->os_state.lwpid; in fill_lwpsinfo()
732 lwp->pr_lwpid = tst->os_state.lwpid; in fill_lwpstatus()

12