| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | proc-service.c | 134 get_ps_regcache (struct ps_prochandle *ph, lwpid_t lwpid) in get_ps_regcache() argument 137 return get_thread_arch_regcache (inf, ptid_t (inf->pid, lwpid), in get_ps_regcache() 145 ps_lgetregs (struct ps_prochandle *ph, lwpid_t lwpid, prgregset_t gregset) in ps_lgetregs() argument 147 struct regcache *regcache = get_ps_regcache (ph, lwpid); in ps_lgetregs() 159 ps_lsetregs (struct ps_prochandle *ph, lwpid_t lwpid, const prgregset_t gregset) in ps_lsetregs() argument 161 struct regcache *regcache = get_ps_regcache (ph, lwpid); in ps_lsetregs() 173 ps_lgetfpregs (struct ps_prochandle *ph, lwpid_t lwpid, in ps_lgetfpregs() argument 176 struct regcache *regcache = get_ps_regcache (ph, lwpid); in ps_lgetfpregs() 188 ps_lsetfpregs (struct ps_prochandle *ph, lwpid_t lwpid, in ps_lsetfpregs() argument 191 struct regcache *regcache = get_ps_regcache (ph, lwpid); in ps_lsetfpregs()
|
| D | sol-thread.c | 177 lwpid_t lwpid, 743 ps_lstop (struct ps_prochandle *ph, lwpid_t lwpid) in ps_lstop() argument 751 ps_lcontinue (struct ps_prochandle *ph, lwpid_t lwpid) in ps_lcontinue() argument 844 ps_lgetregs (struct ps_prochandle *ph, lwpid_t lwpid, prgregset_t gregset) in ps_lgetregs() argument 846 ptid_t ptid = ptid_t (current_inferior ()->pid, lwpid, 0); in ps_lgetregs() 859 ps_lsetregs (struct ps_prochandle *ph, lwpid_t lwpid, in ps_lsetregs() argument 862 ptid_t ptid = ptid_t (current_inferior ()->pid, lwpid, 0); in ps_lsetregs() 887 ps_lgetxregsize (struct ps_prochandle *ph, lwpid_t lwpid, int *xregsize) in ps_lgetxregsize() argument 895 ps_lgetxregs (struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset) in ps_lgetxregs() argument 903 ps_lsetxregs (struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset) in ps_lsetxregs() argument [all …]
|
| D | linux-nat.c | 284 static int kill_lwp (int lwpid, int signo); 1079 int lwpid = ptid.lwp (); in attach_proc_task_lwp_callback() local 1081 if (ptrace (PTRACE_ATTACH, lwpid, 0, 0) < 0) in attach_proc_task_lwp_callback() 1091 || (err == EPERM && linux_proc_pid_is_gone (lwpid))) in attach_proc_task_lwp_callback() 1095 lwpid, err, safe_strerror (err)); in attach_proc_task_lwp_callback() 1104 lwpid, reason.c_str ()); in attach_proc_task_lwp_callback() 1455 int lwpid = lp->ptid.lwp (); in detach_one_lwp() local 1472 kill_lwp (lwpid, SIGCONT); in detach_one_lwp() 1513 detach_one_pid (lwpid, signo); in detach_one_lwp() 1840 kill_lwp (int lwpid, int signo) in kill_lwp() argument [all …]
|
| D | amd64-linux-nat.c | 337 lwpid_t lwpid, int idx, void **base) in ps_get_thread_area() argument 344 result = x86_linux_get_thread_area (lwpid, (void *) (long) idx, in ps_get_thread_area() 367 fs = ptrace (PTRACE_PEEKUSER, lwpid, in ps_get_thread_area() 382 gs = ptrace (PTRACE_PEEKUSER, lwpid, in ps_get_thread_area()
|
| D | corelow.c | 375 int lwpid = atoi (bfd_section_name (asect) + 5); in add_to_thread_list() local 376 ptid_t ptid (inf->pid, lwpid); in add_to_thread_list() 478 int lwpid = atoi (bfd_section_name (sect) + 5); in rename_vmcore_idle_reg_sections() local 479 sections_and_lwpids.emplace_back (sect, lwpid); in rename_vmcore_idle_reg_sections() 480 all_lwpids.insert (lwpid); in rename_vmcore_idle_reg_sections() 481 if (lwpid == 0) in rename_vmcore_idle_reg_sections() 513 int lwpid = atoi (bfd_section_name (sect) + 5); in rename_vmcore_idle_reg_sections() local 514 if (lwpid == iter->second) in rename_vmcore_idle_reg_sections() 517 gdb_assert (lwpid != 0); in rename_vmcore_idle_reg_sections()
|
| D | arc-linux-nat.c | 295 ps_get_thread_area (struct ps_prochandle *ph, lwpid_t lwpid, int idx, in ps_get_thread_area() argument 300 if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0) in ps_get_thread_area()
|
| D | procfs.c | 1614 int lwpid; in proc_update_threads() local 1641 lwpid = atoi (&direntry->d_name[0]); in proc_update_threads() 1642 thread = create_procinfo (pi->pid, lwpid); in proc_update_threads() 1802 int lwpid; in do_attach() local 1860 lwpid = proc_get_current_thread (pi); in do_attach() 1861 create_procinfo (pi->pid, lwpid); in do_attach() 1864 ptid = ptid_t (pi->pid, lwpid, 0); in do_attach() 2617 int lwpid; in procfs_init_inferior() local 2668 lwpid = proc_get_current_thread (pi); in procfs_init_inferior() 2671 create_procinfo (pid, lwpid); in procfs_init_inferior() [all …]
|
| D | m68k-linux-nat.c | 498 lwpid_t lwpid, int idx, void **base) in ps_get_thread_area() argument 500 if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) < 0) in ps_get_thread_area()
|
| D | xtensa-linux-nat.c | 315 lwpid_t lwpid, int idx, void **base) in ps_get_thread_area() argument 319 if (ptrace (PTRACE_GETREGS, lwpid, NULL, ®s) != 0) in ps_get_thread_area()
|
| D | i386-linux-nat.c | 606 lwpid_t lwpid, int idx, void **base) in ps_get_thread_area() argument 611 result = x86_linux_get_thread_area (lwpid, (void *) idx, &base_addr); in ps_get_thread_area()
|
| /netbsd/src/usr.sbin/tprof/ |
| D | tprof_analyze.c | 61 uint32_t lwpid; /* lwp id */ member 86 if (a1->lwpid > a2->lwpid) { in addrtree_compare_key() 88 } else if (a1->lwpid < a2->lwpid) { in addrtree_compare_key() 232 a->lwpid = sample.s_lwpid; in tprof_analyze() 234 a->lwpid = 0; in tprof_analyze() 262 assert(a->lwpid == o->lwpid); in tprof_analyze() 334 a->pid, a->lwpid, a->cpuid, a->in_kernel, a->addr, name); in tprof_analyze()
|
| /netbsd/src/tests/lib/libc/sys/ |
| D | t_futex_robust.c | 62 lwpid_t lwpid; member 261 ATF_REQUIRE(_lwp_create(&lwp_data.context, 0, &lwp_data.lwpid) == 0); in ATF_TC_BODY() 262 ATF_REQUIRE(_lwp_wait(lwp_data.lwpid, NULL) == 0); in ATF_TC_BODY() 291 ATF_REQUIRE(_lwp_create(&lwp_data.context, 0, &lwp_data.lwpid) == 0); in ATF_TC_BODY() 292 ATF_REQUIRE(_lwp_wait(lwp_data.lwpid, NULL) == 0); in ATF_TC_BODY() 320 ATF_REQUIRE(_lwp_create(&lwp_data.context, 0, &lwp_data.lwpid) == 0); in ATF_TC_BODY() 321 ATF_REQUIRE(_lwp_wait(lwp_data.lwpid, NULL) == 0); in ATF_TC_BODY() 350 ATF_REQUIRE(_lwp_create(&lwp_data.context, 0, &lwp_data.lwpid) == 0); in ATF_TC_BODY() 351 ATF_REQUIRE(_lwp_wait(lwp_data.lwpid, NULL) == 0); in ATF_TC_BODY() 380 ATF_REQUIRE(_lwp_create(&lwp_data.context, 0, &lwp_data.lwpid) == 0); in ATF_TC_BODY() [all …]
|
| D | t_futex_ops.c | 74 lwpid_t lwpid; member 109 RL(_lwp_create(&d->context, 0, &d->lwpid)); in create_lwp_waiter() 121 RL(_lwp_wait(d->lwpid, NULL)); in reap_lwp_waiter() 362 wlwp->lwpid)); in do_futex_wait_wake_test() 436 DPRINTF(("futex_basic_wait_wake: reaping LWP %d\n", wlwp->lwpid)); in do_futex_wait_wake_test() 673 RL(_lwp_create(&wlwp0->context, 0, &wlwp0->lwpid)); in do_futex_wait_wake_bitset_test() 674 RL(_lwp_create(&wlwp1->context, 0, &wlwp1->lwpid)); in do_futex_wait_wake_bitset_test() 736 RL(_lwp_wait(wlwp0->lwpid, NULL)); in do_futex_wait_wake_bitset_test() 754 RL(_lwp_wait(wlwp1->lwpid, NULL)); in do_futex_wait_wake_bitset_test() 799 RL(_lwp_create(&wlwp0->context, 0, &wlwp0->lwpid)); in do_futex_requeue_test() [all …]
|
| D | t_setrlimit.c | 462 lwpid_t lwpid; in ATF_TC_BODY() local 477 makecontext(&c, func, 1, &lwpid); in ATF_TC_BODY() 478 ATF_CHECK_ERRNO(EAGAIN, _lwp_create(&c, 0, &lwpid) == -1); in ATF_TC_BODY()
|
| /netbsd/src/lib/libc/include/ |
| D | futex_private.h | 58 __futex_get_robust_list(lwpid_t lwpid, void **headp, size_t *lenp) in __futex_get_robust_list() argument 60 return _syscall(SYS___futex_get_robust_list, lwpid, headp, lenp); in __futex_get_robust_list()
|
| /netbsd/src/sys/arch/sh3/sh3/ |
| D | db_trace.c | 105 bool lwpid = false; variable 117 lwpid = true; 120 if (lwpaddr && lwpid) { 124 if ((lwpaddr || lwpid) && !have_addr) { 142 } else if (lwpaddr || lwpid) {
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
| D | clone-new-thread-event.c | 41 tkill (int lwpid, int signo) in tkill() argument 43 return syscall (__NR_tkill, lwpid, signo); in tkill()
|
| /netbsd/src/external/gpl3/binutils/dist/bfd/ |
| D | hpux-core.c | 82 int lwpid; /* Kernel thread ID. */ member 90 #define core_kernel_thread_id(bfd) (core_hdr(bfd)->lwpid) 201 core_kernel_thread_id (abfd) = proc_info.lwpid; in hpux_core_core_file_p()
|
| D | elf32-am33lin.c | 58 elf_tdata (abfd)->core->lwpid = bfd_get_32 (abfd, note->descdata + 24); in elf32_am33lin_grok_prstatus()
|
| D | elfxx-kvx.c | 165 elf_tdata (abfd)->core->lwpid = bfd_get_32 (abfd, note->descdata + 32); in _bfd_kvx_elf_grok_prstatus()
|
| /netbsd/src/external/gpl3/gdb/dist/bfd/ |
| D | hpux-core.c | 82 int lwpid; /* Kernel thread ID. */ member 90 #define core_kernel_thread_id(bfd) (core_hdr(bfd)->lwpid) 201 core_kernel_thread_id (abfd) = proc_info.lwpid; in hpux_core_core_file_p()
|
| D | elf32-am33lin.c | 58 elf_tdata (abfd)->core->lwpid = bfd_get_32 (abfd, note->descdata + 24); in elf32_am33lin_grok_prstatus()
|
| D | elfxx-kvx.c | 165 elf_tdata (abfd)->core->lwpid = bfd_get_32 (abfd, note->descdata + 32); in _bfd_kvx_elf_grok_prstatus()
|
| /netbsd/src/sys/compat/netbsd32/ |
| D | netbsd32_futex.c | 118 error = futex_robust_head_lookup(l, SCARG(uap, lwpid), &head); in netbsd32___futex_get_robust_list()
|
| /netbsd/src/sys/kern/ |
| D | sys_futex.c | 1807 error = futex_robust_head_lookup(l, SCARG(uap, lwpid), &head); in sys___futex_get_robust_list() 1965 futex_robust_head_lookup(struct lwp *l, lwpid_t lwpid, void **headp) in futex_robust_head_lookup() argument 1970 if (lwpid) { in futex_robust_head_lookup() 1972 l = lwp_find(p, lwpid); in futex_robust_head_lookup()
|