HomeSort by: relevance | last modified time | path
    Searched refs:tid (Results 1 - 25 of 160) sorted by relevancy

1 2 3 4 5 6 7

  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_thread_registry.cc 19 ThreadContextBase::ThreadContextBase(u32 tid)
20 : tid(tid), unique_id(0), reuse_count(), os_id(0), user_id(0),
88 // Parent tid makes no sense for the main thread.
89 if (tid != 0)
139 u32 tid = kUnknownTid; local
142 tid = tctx->tid;
144 // Allocate new thread context and tid.
145 tid = n_contexts_++
    [all...]
sanitizer_thread_registry.h 36 explicit ThreadContextBase(u32 tid);
39 const u32 tid; // Thread ID. Main thread should have tid = 0. member in class:__sanitizer::ThreadContextBase
41 u32 reuse_count; // Number of times this tid was reused.
80 typedef ThreadContextBase* (*ThreadContextFactory)(u32 tid);
97 ThreadContextBase *GetThreadLocked(u32 tid) {
98 DCHECK_LT(tid, n_contexts_);
99 return threads_[tid];
119 void SetThreadName(u32 tid, const char *name);
121 void DetachThread(u32 tid, void *arg)
    [all...]
sanitizer_stoptheworld_linux_libcdep.cc 96 void Append(tid_t tid);
139 bool ThreadSuspender::SuspendThread(tid_t tid) {
143 if (suspended_threads_list_.ContainsTid(tid)) return false;
145 if (internal_iserror(internal_ptrace(PTRACE_ATTACH, tid, nullptr, nullptr),
149 VReport(1, "Could not attach to thread %zu (errno %d).\n", (uptr)tid,
153 VReport(2, "Attached to thread %zu.\n", (uptr)tid);
166 HANDLE_EINTR(waitpid_status, internal_waitpid(tid, &status, __WALL));
172 (uptr)tid, wperrno);
173 internal_ptrace(PTRACE_DETACH, tid, nullptr, nullptr);
177 internal_ptrace(PTRACE_CONT, tid, nullptr
190 pid_t tid = suspended_threads_list_.GetThreadID(i); local
537 pid_t tid = GetThreadID(index); local
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/lsan/
lsan_linux.cc 24 void SetCurrentThread(u32 tid) { current_thread_tid = tid; }
lsan_thread.h 28 explicit ThreadContext(int tid);
48 void ThreadStart(u32 tid, tid_t os_id, bool workerthread = false);
50 u32 ThreadCreate(u32 tid, uptr uid, bool detached);
51 void ThreadJoin(u32 tid);
55 void SetCurrentThread(u32 tid);
lsan_thread.cc 28 static ThreadContextBase *CreateThreadContext(u32 tid) {
30 return new(mem) ThreadContext(tid);
42 ThreadContext::ThreadContext(int tid)
43 : ThreadContextBase(tid),
80 void ThreadStart(u32 tid, tid_t os_id, bool workerthread) {
84 GetThreadStackAndTls(tid == 0, &args.stack_begin, &stack_size,
90 thread_registry->StartThread(tid, os_id, workerthread, &args);
118 void ThreadJoin(u32 tid) {
119 CHECK_NE(tid, kInvalidTid);
120 thread_registry->JoinThread(tid, /* arg */nullptr)
    [all...]
lsan.cc 100 u32 tid = ThreadCreate(0, 0, true); local
101 CHECK_EQ(tid, 0);
102 ThreadStart(tid, GetTid());
103 SetCurrentThread(tid);
lsan_interceptors.cc 346 atomic_uintptr_t tid; member in struct:std::ThreadParam
362 int tid = 0; local
363 while ((tid = atomic_load(&p->tid, memory_order_acquire)) == 0)
365 SetCurrentThread(tid);
366 ThreadStart(tid, GetTid());
367 atomic_store(&p->tid, 0, memory_order_release);
386 atomic_store(&p.tid, 0, memory_order_relaxed);
397 int tid = ThreadCreate(GetCurrentThread(), *(uptr *)th, local
399 CHECK_NE(tid, 0)
411 int tid = ThreadTid((uptr)th); local
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/asan/
asan_errors.h 30 u32 tid; member in struct:__asan::ErrorBase
33 explicit ErrorBase(u32 tid_) : tid(tid_) {}
34 ErrorBase(u32 tid_, int initial_score, const char *reason) : tid(tid_) {
44 ErrorDeadlySignal(u32 tid, const SignalContext &sig)
45 : ErrorBase(tid),
72 ErrorDoubleFree(u32 tid, BufferedStackTrace *stack, uptr addr)
73 : ErrorBase(tid, 42, "double-free"),
88 ErrorNewDeleteTypeMismatch(u32 tid, BufferedStackTrace *stack, uptr addr,
90 : ErrorBase(tid, 10, "new-delete-type-mismatch"),
104 ErrorFreeNotMalloced(u32 tid, BufferedStackTrace *stack, uptr addr
    [all...]
asan_thread.h 38 // so we can find them by tid even if the thread is long dead.
41 explicit AsanThreadContext(int tid)
42 : ThreadContextBase(tid), announced(false),
82 u32 tid() { return context_->tid; } function in class:__asan::AsanThread
98 void DeleteFakeStack(int tid) {
103 t->Destroy(tid);
187 AsanThreadContext *GetThreadContextByTidLocked(u32 tid);
asan_thread.cc 50 static ThreadContextBase *GetAsanThreadContext(u32 tid) {
52 return new(allocator_for_thread_context) AsanThreadContext(tid);
71 AsanThreadContext *GetThreadContextByTidLocked(u32 tid) {
73 asanThreadRegistry().GetThreadLocked(tid));
95 VReport(1, "T%d TSDDtor\n", context->tid);
101 int tid = this->tid(); local
102 VReport(1, "T%d exited\n", tid);
106 asanThreadRegistry().FinishThread(tid);
112 DeleteFakeStack(tid);
    [all...]
  /src/sys/dev/pci/cxgb/
cxgb_offload.h 88 * TID allocation services.
98 unsigned int tid);
99 void cxgb_queue_tid_release(struct toedev *dev, unsigned int tid);
100 void cxgb_remove_tid(struct toedev *dev, void *ctx, unsigned int tid);
121 CPL_RET_UNKNOWN_TID = 4 // unexpected unknown TID
148 * Holds the size, base address, free list start, etc of the TID, server TID,
149 * and active-open TID tables for a offload device.
204 * Map an ATID or STID to their entries in the corresponding TID tables.
220 * Find the connection corresponding to a TID
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_rtl_thread.cc 25 ThreadContext::ThreadContext(int tid)
26 : ThreadContextBase(tid)
55 if (tid == 0)
71 uptr trace_p = GetThreadTrace(tid);
73 //!!! ReleaseMemoryToOS(GetThreadTraceHeader(tid), sizeof(Trace));
96 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count,
99 thr->shadow_stack = &ThreadTrace(thr->tid)->shadow_stack[0];
124 tid, (uptr)epoch0, args->stk_addr, args->stk_size,
180 if (tctx->tid == 0) {
184 " created at:\n", tctx->tid, tctx->name)
236 int tid = local
    [all...]
tsan_clock.cc 108 ThreadClock::ThreadClock(unsigned tid, unsigned reused)
109 : tid_(tid)
114 CHECK_LT(tid, kMaxTidInClock);
145 unsigned tid = dirty.tid; local
146 if (tid != kInvalidTid) {
147 if (clk_[tid] < dirty.epoch) {
148 clk_[tid] = dirty.epoch;
253 CHECK_EQ(dst->dirty_[0].tid, kInvalidTid);
256 dst->dirty_[0].tid = tid_
323 const unsigned tid = dirty->tid; local
    [all...]
tsan_clock.h 33 u64 get(unsigned tid) const;
34 u64 get_clean(unsigned tid) const;
70 u64 tid : 64 - kClkBits; // kInvalidId if not active
121 ClockElem &elem(unsigned tid) const;
129 explicit ThreadClock(unsigned tid, unsigned reused = 0);
131 u64 get(unsigned tid) const;
132 void set(ClockCache *c, unsigned tid, u64 v);
171 ALWAYS_INLINE u64 ThreadClock::get(unsigned tid) const {
172 DCHECK_LT(tid, kMaxTidInClock);
173 return clk_[tid];
    [all...]
tsan_interface_java.cc 71 DPrintf("#%d: java_init(%p, %p)\n", thr->tid, heap_begin, heap_size);
83 DPrintf("#%d: java_fini()\n", thr->tid);
87 DPrintf("#%d: java_fini() = %d\n", thr->tid, status);
93 DPrintf("#%d: java_alloc(%p, %p)\n", thr->tid, ptr, size);
106 DPrintf("#%d: java_free(%p, %p)\n", thr->tid, ptr, size);
119 DPrintf("#%d: java_move(%p, %p, %p)\n", thr->tid, src, dst, size);
172 DPrintf("#%d: java_mutex_finalize()\n", thr->tid);
178 DPrintf("#%d: java_mutex_lock(%p)\n", thr->tid, addr);
189 DPrintf("#%d: java_mutex_unlock(%p)\n", thr->tid, addr);
199 DPrintf("#%d: java_mutex_read_lock(%p)\n", thr->tid, addr)
    [all...]
tsan_fd.cc 111 d->creation_tid = thr->tid;
143 bool FdLocation(uptr addr, int *fd, int *tid, u32 *stack) {
152 *tid = d->creation_tid;
165 DPrintf("#%d: FdAcquire(%d) -> %p\n", thr->tid, fd, s);
176 DPrintf("#%d: FdRelease(%d) -> %p\n", thr->tid, fd, s);
183 DPrintf("#%d: FdAccess(%d)\n", thr->tid, fd);
191 DPrintf("#%d: FdClose(%d)\n", thr->tid, fd);
219 DPrintf("#%d: FdFileCreate(%d)\n", thr->tid, fd);
226 DPrintf("#%d: FdDup(%d, %d)\n", thr->tid, oldfd, newfd);
237 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd)
    [all...]
  /src/sys/compat/linux/common/
linux_sigevent.h 52 int tid; member in union:linux_sigevent::__anon2341
  /src/sys/compat/linux32/common/
linux32_sigevent.h 54 int tid; member in union:linux32_sigevent::__anon2367
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
standalone_malloc_test.cc 20 size_t tid = reinterpret_cast<size_t>(t); local
24 if ((i % (kNumIters / 4)) == 0 && tid == 0)
25 fprintf(stderr, " T[%ld] iter %ld\n", tid, i);
50 if (tid == 0)
52 tid, total_malloced >> 20, (total_malloced - total_freed) >> 20,
sanitizer_thread_registry_test.cc 27 static ThreadContextBase *GetThreadContext(u32 tid) {
29 return new(tctx_allocator) TCTX(tid);
44 static bool is_detached(u32 tid) {
45 return (tid % 2 == 0);
48 static uptr get_uid(u32 tid) {
49 return tid * 2;
64 arr[tctx->tid] = true;
114 u32 tid = new_tids[i]; local
115 registry->StartThread(tid, 0, false, 0);
116 registry->DetachThread(tid, 0)
    [all...]
sanitizer_posix_test.cc 45 pthread_t tid; local
46 ASSERT_EQ(0, pthread_create(&tid, 0, &thread_func,
49 ASSERT_EQ(0, pthread_join(tid, &retval));
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
tsan_clock_test.cc 313 unsigned tid; member in struct:__tsan::SimpleThreadClock
315 explicit SimpleThreadClock(unsigned tid) {
316 this->tid = tid;
317 size = tid + 1;
323 clock[tid]++;
389 unsigned tid = rand() % kThreads; local
391 thr0[tid]->tick();
392 thr1[tid]->tick();
397 printf("acquire thr%d <- clk%d\n", tid, cid)
    [all...]
  /src/sys/net/npf/
npf_tableset.c 158 for (u_int tid = 0; tid < ts->ts_nitems; tid++) {
159 npf_table_t *t = ts->ts_map[tid];
180 const u_int tid = t->t_id; local
183 KASSERT((u_int)tid < ts->ts_nitems);
185 if (ts->ts_map[tid] == NULL) {
187 ts->ts_map[tid] = t;
198 const u_int tid = newt->t_id; local
199 npf_table_t *oldt = ts->ts_map[tid];
    [all...]
  /src/lib/libbluetooth/
sdp-int.h 33 uint16_t tid; /* current session transaction ID */ member in struct:sdp_session

Completed in 44 milliseconds

1 2 3 4 5 6 7