Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 566) sorted by relevance

12345678910>>...23

/openbsd/src/gnu/usr.bin/binutils/gdb/
Di386-linux-nat.c165 int tid; in fetch_register() local
176 tid = TIDGET (inferior_ptid); in fetch_register()
177 if (tid == 0) in fetch_register()
178 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in fetch_register()
181 val = ptrace (PTRACE_PEEKUSER, tid, register_addr (regno, 0), 0); in fetch_register()
194 int tid; in store_register() local
202 tid = TIDGET (inferior_ptid); in store_register()
203 if (tid == 0) in store_register()
204 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in store_register()
208 ptrace (PTRACE_POKEUSER, tid, register_addr (regno, 0), val); in store_register()
[all …]
Dm68klinux-nat.c135 int tid; in fetch_register() local
145 tid = TIDGET (inferior_ptid); in fetch_register()
146 if (tid == 0) in fetch_register()
147 tid = PIDGET (inferior_ptid); /* no thread id, just use process id */ in fetch_register()
156 *(PTRACE_XFER_TYPE *) &buf[i] = ptrace (PT_READ_U, tid, in fetch_register()
199 int tid; in store_register() local
208 tid = TIDGET (inferior_ptid); in store_register()
209 if (tid == 0) in store_register()
210 tid = PIDGET (inferior_ptid); /* no thread id, just use process id */ in store_register()
224 ptrace (PT_WRITE_U, tid, (PTRACE_ARG3_TYPE) regaddr, in store_register()
[all …]
Dppc-linux-nat.c224 fetch_altivec_register (int tid, int regno) in fetch_altivec_register() argument
232 ret = ptrace (PTRACE_GETVRREGS, tid, 0, &regs); in fetch_altivec_register()
263 get_spe_registers (int tid, struct gdb_evrregset_t *evrregset) in get_spe_registers() argument
267 if (ptrace (PTRACE_GETEVRREGS, tid, 0, evrregset) >= 0) in get_spe_registers()
289 fetch_spe_register (int tid, int regno) in fetch_spe_register() argument
301 get_spe_registers (tid, &evrregs); in fetch_spe_register()
327 fetch_register (int tid, int regno) in fetch_register() argument
344 fetch_altivec_register (tid, regno); in fetch_register()
353 fetch_spe_register (tid, regno); in fetch_register()
373 = ptrace (PT_READ_U, tid, (PTRACE_ARG3_TYPE) regaddr, 0); in fetch_register()
[all …]
Dinfttrace.c353 lwpid_t tid; /* Thread ID */ member
599 create_thread_info (int pid, lwpid_t tid) in create_thread_info() argument
607 new_p->tid = tid; in create_thread_info()
624 printf ("First thread, pid %d tid %d!\n", pid, tid); in create_thread_info()
632 printf ("Subsequent thread, pid %d tid %d\n", pid, tid); in create_thread_info()
717 find_thread_info (lwpid_t tid) in find_thread_info() argument
723 if (p->tid == tid) in find_thread_info()
731 if (p->tid == tid) in find_thread_info()
757 if (p->tid == gdb_tid) in map_from_gdb_tid()
767 return p->tid; in map_from_gdb_tid()
[all …]
Damd64-linux-nat.c153 int tid; in fetch_inferior_registers() local
156 tid = TIDGET (inferior_ptid); in fetch_inferior_registers()
157 if (tid == 0) in fetch_inferior_registers()
158 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in fetch_inferior_registers()
164 if (ptrace (PTRACE_GETREGS, tid, 0, (long) &regs) < 0) in fetch_inferior_registers()
176 if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0) in fetch_inferior_registers()
190 int tid; in store_inferior_registers() local
193 tid = TIDGET (inferior_ptid); in store_inferior_registers()
194 if (tid == 0) in store_inferior_registers()
195 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in store_inferior_registers()
[all …]
Ds390-nat.c120 int tid = TIDGET (inferior_ptid); in s390_inferior_tid() local
121 if (tid == 0) in s390_inferior_tid()
122 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in s390_inferior_tid()
124 return tid; in s390_inferior_tid()
130 fetch_regs (int tid) in fetch_regs() argument
138 if (ptrace (PTRACE_PEEKUSR_AREA, tid, (long) &parea) < 0) in fetch_regs()
147 store_regs (int tid, int regnum) in store_regs() argument
155 if (ptrace (PTRACE_PEEKUSR_AREA, tid, (long) &parea) < 0) in store_regs()
160 if (ptrace (PTRACE_POKEUSR_AREA, tid, (long) &parea) < 0) in store_regs()
167 fetch_fpregs (int tid) in fetch_fpregs() argument
[all …]
Daix-thread.c93 pthdb_tid_t tid; /* kernel thread id */ member
101 pthdb_tid_t tid; member
142 static int pdc_read_regs (pthdb_user_t user, pthdb_tid_t tid,
145 static int pdc_write_regs (pthdb_user_t user, pthdb_tid_t tid,
331 pthdb_tid_t tid, in pdc_read_regs() argument
349 (int) tid, hex_string (flags)); in pdc_read_regs()
356 if (!ptrace64aix (PTT_READ_GPRS, tid, in pdc_read_regs()
363 if (!ptrace32 (PTT_READ_GPRS, tid, gprs32, 0, NULL)) in pdc_read_regs()
372 if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL)) in pdc_read_regs()
382 if (!ptrace64aix (PTT_READ_SPRS, tid, in pdc_read_regs()
[all …]
Darm-linux-nat.c90 int tid = TIDGET (ptid); in get_thread_id() local
91 if (0 == tid) in get_thread_id()
92 tid = PIDGET (ptid); in get_thread_id()
93 return tid; in get_thread_id()
229 int ret, tid; in fetch_fpregister() local
233 tid = GET_THREAD_ID (inferior_ptid); in fetch_fpregister()
236 ret = ptrace (PT_GETFPREGS, tid, 0, &fp); in fetch_fpregister()
278 int ret, regno, tid; in fetch_fpregs() local
282 tid = GET_THREAD_ID (inferior_ptid); in fetch_fpregs()
285 ret = ptrace (PT_GETFPREGS, tid, 0, &fp); in fetch_fpregs()
[all …]
Dm32r-linux-nat.c106 fetch_regs (int tid) in fetch_regs() argument
110 if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 0) in fetch_regs()
154 store_regs (int tid, int regno) in store_regs() argument
158 if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 0) in store_regs()
163 if (ptrace (PTRACE_SETREGS, tid, 0, (int) &regs) < 0) in store_regs()
193 int tid; in fetch_inferior_registers() local
196 tid = TIDGET (inferior_ptid); in fetch_inferior_registers()
197 if (tid == 0) in fetch_inferior_registers()
198 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in fetch_inferior_registers()
205 fetch_regs (tid); in fetch_inferior_registers()
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_thread_registry.cpp20 ThreadContextBase::ThreadContextBase(u32 tid) in ThreadContextBase() argument
21 : tid(tid), unique_id(0), reuse_count(), os_id(0), user_id(0), in ThreadContextBase()
90 if (tid != kMainTid) in SetCreated()
139 u32 tid = kInvalidTid; in CreateThread() local
142 tid = tctx->tid; in CreateThread()
145 tid = threads_.size(); in CreateThread()
146 tctx = context_factory_(tid); in CreateThread()
159 CHECK_NE(tid, kInvalidTid); in CreateThread()
160 CHECK_LT(tid, max_threads_); in CreateThread()
171 CHECK(live_.try_emplace(user_id, tid).second); in CreateThread()
[all …]
/openbsd/src/regress/usr.bin/ssh/
Dsftp-cmds.sh8 tid="sftp commands"
24 verbose "$tid: lls"
28 verbose "$tid: lls w/path"
32 verbose "$tid: ls"
37 verbose "$tid: shell"
41 verbose "$tid: pwd"
46 verbose "$tid: lpwd"
51 verbose "$tid: quit"
56 verbose "$tid: help"
62 verbose "$tid: get"
[all …]
Dsshsig.sh4 tid="sshsig"
34 verbose "$tid: make certificates"
45 verbose "$tid: check signature for $t"
54 trace "$tid: key type $t check bad hashlg"
64 trace "$tid: key type $t sign with hash $h"
69 trace "$tid: key type $t verify with hash $h"
76 trace "$tid: key type $t verify with limited namespace"
84 trace "$tid: key type $t print-pubkey"
97 trace "$tid: key type $t verify with bad signers"
105 trace "$tid: key type $t verify with wrong key"
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/asan/
Dasan_errors.h29 u32 tid; member
32 explicit ErrorBase(u32 tid_) : tid(tid_) {} in ErrorBase()
33 ErrorBase(u32 tid_, int initial_score, const char *reason) : tid(tid_) { in ErrorBase()
43 ErrorDeadlySignal(u32 tid, const SignalContext &sig) in ErrorDeadlySignal()
44 : ErrorBase(tid), in ErrorDeadlySignal()
72 ErrorDoubleFree(u32 tid, BufferedStackTrace *stack, uptr addr) in ErrorDoubleFree()
73 : ErrorBase(tid, 42, "double-free"), in ErrorDoubleFree()
88 ErrorNewDeleteTypeMismatch(u32 tid, BufferedStackTrace *stack, uptr addr, in ErrorNewDeleteTypeMismatch()
90 : ErrorBase(tid, 10, "new-delete-type-mismatch"), in ErrorNewDeleteTypeMismatch()
104 ErrorFreeNotMalloced(u32 tid, BufferedStackTrace *stack, uptr addr) in ErrorFreeNotMalloced()
[all …]
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Linux/
DIntelPTThreadTraceCollection.cpp17 bool IntelPTThreadTraceCollection::TracesThread(lldb::tid_t tid) const { in TracesThread()
18 return m_thread_traces.count(tid); in TracesThread()
21 Error IntelPTThreadTraceCollection::TraceStop(lldb::tid_t tid) { in TraceStop() argument
22 auto it = m_thread_traces.find(tid); in TraceStop()
25 "Thread %" PRIu64 " not currently traced", tid); in TraceStop()
27 m_thread_traces.erase(tid); in TraceStop()
32 lldb::tid_t tid, const TraceIntelPTStartRequest &request) { in TraceStart() argument
33 if (TracesThread(tid)) in TraceStart()
35 "Thread %" PRIu64 " already traced", tid); in TraceStart()
38 IntelPTSingleBufferTrace::Start(request, tid); in TraceStart()
[all …]
/openbsd/src/gnu/usr.bin/perl/dist/threads/t/
Dfree2.t76 my $tid = threads->tid();
77 $q->enqueue($tid, "Thread $tid started");
86 if ($tid < 18) {
87 my $next = 'th' . $tid;
95 while (! exists($READY{$tid})) {
98 $other = delete($READY{$tid});
100 $q->enqueue($tid, "Thread $tid received signal from $other");
108 my $tid = threads->tid();
114 $q->enqueue($tid, "Thread $tid done");
123 my $tid = threads->tid();
[all …]
Dbasic.t89 ok(10, $self->tid == 7, "Wanted 7, got ".$self->tid);
90 ok(11, threads->tid() == 7, "Wanted 7, got ".threads->tid());
96 ok(12, $self->tid == 8, "Wanted 8, got ".$self->tid);
97 ok(13, threads->tid() == 8, "Wanted 8, got ".threads->tid());
102 ok(14, 0 == threads->self->tid(), "Check so that tid for threads work for main thread");
103 ok(15, 0 == threads->tid(), "Check so that tid for threads work for main thread");
108 ok(16, threads->tid() == 9, "Tid should be correct in the clone");
111 ok(17, threads->tid() == 9, "And tid be 9 here too");
117 ok(19, threads->tid() == 10, "In destroy it should be correct too" )
121 ok(18, threads->tid() == 10, "And tid be 10 here");
[all …]
Dfree.t67 my $tid = threads->tid();
68 $q->enqueue($tid, "Thread $tid started");
96 $q->enqueue($tid, "Thread $tid done");
124 my $tid = threads->tid();
125 $q->enqueue($tid, "Thread $tid started");
140 $q->enqueue($tid, "Thread $tid done");
170 my $tid = threads->tid();
171 $q->enqueue($tid, "Thread $tid started");
177 my $tid = threads->tid();
178 $q->enqueue($tid, "Thread $tid started");
[all …]
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Utility/
DRegisterContextMach_arm.cpp26 int RegisterContextMach_arm::DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) { in DoReadGPR() argument
28 return ::thread_get_state(tid, flavor, (thread_state_t)&gpr, &count); in DoReadGPR()
31 int RegisterContextMach_arm::DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) { in DoReadFPU() argument
33 return ::thread_get_state(tid, flavor, (thread_state_t)&fpu, &count); in DoReadFPU()
36 int RegisterContextMach_arm::DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) { in DoReadEXC() argument
38 return ::thread_get_state(tid, flavor, (thread_state_t)&exc, &count); in DoReadEXC()
41 int RegisterContextMach_arm::DoReadDBG(lldb::tid_t tid, int flavor, DBG &dbg) { in DoReadDBG() argument
43 return ::thread_get_state(tid, flavor, (thread_state_t)&dbg, &count); in DoReadDBG()
46 int RegisterContextMach_arm::DoWriteGPR(lldb::tid_t tid, int flavor, in DoWriteGPR() argument
49 tid, flavor, reinterpret_cast<thread_state_t>(const_cast<GPR *>(&gpr)), in DoWriteGPR()
[all …]
DRegisterContextMach_x86_64.cpp24 int RegisterContextMach_x86_64::DoReadGPR(lldb::tid_t tid, int flavor, in DoReadGPR() argument
27 return ::thread_get_state(tid, flavor, (thread_state_t)&gpr, &count); in DoReadGPR()
30 int RegisterContextMach_x86_64::DoReadFPU(lldb::tid_t tid, int flavor, in DoReadFPU() argument
33 return ::thread_get_state(tid, flavor, (thread_state_t)&fpu, &count); in DoReadFPU()
36 int RegisterContextMach_x86_64::DoReadEXC(lldb::tid_t tid, int flavor, in DoReadEXC() argument
39 return ::thread_get_state(tid, flavor, (thread_state_t)&exc, &count); in DoReadEXC()
42 int RegisterContextMach_x86_64::DoWriteGPR(lldb::tid_t tid, int flavor, in DoWriteGPR() argument
45 tid, flavor, reinterpret_cast<thread_state_t>(const_cast<GPR *>(&gpr)), in DoWriteGPR()
49 int RegisterContextMach_x86_64::DoWriteFPU(lldb::tid_t tid, int flavor, in DoWriteFPU() argument
52 tid, flavor, reinterpret_cast<thread_state_t>(const_cast<FPU *>(&fpu)), in DoWriteFPU()
[all …]
DRegisterContextMach_i386.cpp24 int RegisterContextMach_i386::DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) { in DoReadGPR() argument
26 return ::thread_get_state(tid, flavor, (thread_state_t)&gpr, &count); in DoReadGPR()
29 int RegisterContextMach_i386::DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) { in DoReadFPU() argument
31 return ::thread_get_state(tid, flavor, (thread_state_t)&fpu, &count); in DoReadFPU()
34 int RegisterContextMach_i386::DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) { in DoReadEXC() argument
36 return ::thread_get_state(tid, flavor, (thread_state_t)&exc, &count); in DoReadEXC()
39 int RegisterContextMach_i386::DoWriteGPR(lldb::tid_t tid, int flavor, in DoWriteGPR() argument
42 tid, flavor, reinterpret_cast<thread_state_t>(const_cast<GPR *>(&gpr)), in DoWriteGPR()
46 int RegisterContextMach_i386::DoWriteFPU(lldb::tid_t tid, int flavor, in DoWriteFPU() argument
49 tid, flavor, reinterpret_cast<thread_state_t>(const_cast<FPU *>(&fpu)), in DoWriteFPU()
[all …]
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/POSIX/
DProcessMessage.h53 static ProcessMessage Limbo(lldb::tid_t tid, int status) { in Limbo() argument
54 return ProcessMessage(tid, eLimboMessage, status); in Limbo()
58 static ProcessMessage Signal(lldb::tid_t tid, int signum) { in Signal() argument
59 return ProcessMessage(tid, eSignalMessage, signum); in Signal()
64 static ProcessMessage SignalDelivered(lldb::tid_t tid, int signum) { in SignalDelivered() argument
65 return ProcessMessage(tid, eSignalDeliveredMessage, signum); in SignalDelivered()
69 static ProcessMessage Trace(lldb::tid_t tid) { in Trace() argument
70 return ProcessMessage(tid, eTraceMessage); in Trace()
74 static ProcessMessage Break(lldb::tid_t tid) { in Break() argument
75 return ProcessMessage(tid, eBreakpointMessage); in Break()
[all …]
/openbsd/src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/
DMachThreadList.h28 bool GetRegisterValue(nub_thread_t tid, uint32_t set, uint32_t reg,
30 bool SetRegisterValue(nub_thread_t tid, uint32_t set, uint32_t reg,
32 nub_size_t GetRegisterContext(nub_thread_t tid, void *buf, size_t buf_len);
33 nub_size_t SetRegisterContext(nub_thread_t tid, const void *buf,
35 uint32_t SaveRegisterState(nub_thread_t tid);
36 bool RestoreRegisterState(nub_thread_t tid, uint32_t save_id);
37 const char *GetThreadInfo(nub_thread_t tid) const;
43 const char *GetName(nub_thread_t tid);
44 nub_state_t GetState(nub_thread_t tid);
45 nub_thread_t SetCurrentThread(nub_thread_t tid);
[all …]
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/MacOSX-Kernel/
DRegisterContextKDP_arm64.cpp24 int RegisterContextKDP_arm64::DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) { in DoReadGPR() argument
30 .SendRequestReadRegisters(tid, GPRRegSet, &gpr, sizeof(gpr), in DoReadGPR()
39 int RegisterContextKDP_arm64::DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) { in DoReadFPU() argument
45 .SendRequestReadRegisters(tid, FPURegSet, &fpu, sizeof(fpu), in DoReadFPU()
54 int RegisterContextKDP_arm64::DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) { in DoReadEXC() argument
60 .SendRequestReadRegisters(tid, EXCRegSet, &exc, sizeof(exc), in DoReadEXC()
69 int RegisterContextKDP_arm64::DoReadDBG(lldb::tid_t tid, int flavor, DBG &dbg) { in DoReadDBG() argument
75 .SendRequestReadRegisters(tid, DBGRegSet, &dbg, sizeof(dbg), in DoReadDBG()
84 int RegisterContextKDP_arm64::DoWriteGPR(lldb::tid_t tid, int flavor, in DoWriteGPR() argument
91 .SendRequestWriteRegisters(tid, GPRRegSet, &gpr, sizeof(gpr), in DoWriteGPR()
[all …]
DRegisterContextKDP_arm.cpp24 int RegisterContextKDP_arm::DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) { in DoReadGPR() argument
30 .SendRequestReadRegisters(tid, GPRRegSet, &gpr, sizeof(gpr), in DoReadGPR()
39 int RegisterContextKDP_arm::DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) { in DoReadFPU() argument
45 .SendRequestReadRegisters(tid, FPURegSet, &fpu, sizeof(fpu), in DoReadFPU()
54 int RegisterContextKDP_arm::DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) { in DoReadEXC() argument
60 .SendRequestReadRegisters(tid, EXCRegSet, &exc, sizeof(exc), in DoReadEXC()
69 int RegisterContextKDP_arm::DoReadDBG(lldb::tid_t tid, int flavor, DBG &dbg) { in DoReadDBG() argument
75 .SendRequestReadRegisters(tid, DBGRegSet, &dbg, sizeof(dbg), in DoReadDBG()
84 int RegisterContextKDP_arm::DoWriteGPR(lldb::tid_t tid, int flavor, in DoWriteGPR() argument
91 .SendRequestWriteRegisters(tid, GPRRegSet, &gpr, sizeof(gpr), in DoWriteGPR()
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cpp24 ThreadContext::ThreadContext(Tid tid) : ThreadContextBase(tid), thr(), sync() {} in ThreadContext() argument
58 if (tctx->tid == kMainTid) { in ReportIgnoresEnabled()
62 " created at:\n", tctx->tid, tctx->name); in ReportIgnoresEnabled()
121 parent = thr->tid; in ThreadCreate()
130 Tid tid = ctx->thread_registry.CreateThread(uid, detached, parent, &arg); in ThreadCreate() local
131 DPrintf("#%d: ThreadCreate tid=%d uid=%zu\n", parent, tid, uid); in ThreadCreate()
132 return tid; in ThreadCreate()
152 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, in ThreadStart() argument
154 ctx->thread_registry.StartThread(tid, os_id, thread_type, thr); in ThreadStart()
169 GetThreadStackAndTls(tid == kMainTid, &stk_addr, &stk_size, &tls_addr, in ThreadStart()
[all …]

12345678910>>...23