| /freebsd/sys/dev/hwt/ |
| H A D | hwt_hook.c | 87 thr->thread_id, td->td_tid, cpu_id); in hwt_switch_in() 89 hwt_backend_configure(ctx, cpu_id, thr->thread_id); in hwt_switch_in() 122 thr->thread_id, td->td_tid, cpu_id); in hwt_switch_out() 154 thr->thread_id, td->td_tid, cpu_id); in hwt_hook_thread_exit() 214 int thread_id, kva_req; in hwt_hook_thread_create() local 223 thread_id = atomic_fetchadd_int(&ctx->thread_counter, 1); in hwt_hook_thread_create() 226 sprintf(path, "hwt_%d_%d", ctx->ident, thread_id); in hwt_hook_thread_create() 239 entry->thread_id = thread_id; in hwt_hook_thread_create() 260 thr->thread_id = thread_id; in hwt_hook_thread_create()
|
| H A D | hwt_ioctl.c | 139 int thread_id; in hwt_ioctl_alloc_mode_thread() local 219 thread_id = atomic_fetchadd_int(&ctx->thread_counter, 1); in hwt_ioctl_alloc_mode_thread() 220 sprintf(path, "hwt_%d_%d", ctx->ident, thread_id); in hwt_ioctl_alloc_mode_thread() 245 entry->thread_id = thread_id; in hwt_ioctl_alloc_mode_thread() 251 thr->thread_id = thread_id; in hwt_ioctl_alloc_mode_thread()
|
| H A D | hwt_backend.h | 36 int thread_id); 63 int hwt_backend_configure(struct hwt_context *ctx, int cpu_id, int thread_id);
|
| H A D | hwt_backend.c | 87 hwt_backend_configure(struct hwt_context *ctx, int cpu_id, int thread_id) in hwt_backend_configure() argument 94 thread_id); in hwt_backend_configure()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_debugging.cpp | 50 uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument 59 if (thread_id) *thread_id = chunk.AllocTid(); in AsanGetStack() 63 if (thread_id) *thread_id = chunk.FreeTid(); in AsanGetStack() 132 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument 133 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack() 137 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument 138 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | clone_after_trunc.c | 32 int thread_id = (int)(long)arg; in run_test() local 35 snprintf(src_path, PATH_MAX, "%s/src-%d", dir, thread_id); in run_test() 36 snprintf(dst_path, PATH_MAX, "%s/dst-%d", dir, thread_id); in run_test() 76 fprintf(stderr, "[%d]: FAIL\n", thread_id); in run_test() 87 fprintf(stderr, "[%d]: ALL ZERO\n", thread_id); in run_test()
|
| /freebsd/crypto/krb5/src/ccapi/test/ |
| H A D | simple_lock_test.c | 53 pthread_t thread_id; in main() local 64 status = pthread_create (&thread_id, NULL, (void *) other_thread, NULL); in main() 70 pthread_join(thread_id, NULL); in main()
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
| H A D | ThreadSpec.h | 63 bool TIDMatches(lldb::tid_t thread_id) const { in TIDMatches() argument 64 if (m_tid == LLDB_INVALID_THREAD_ID || thread_id == LLDB_INVALID_THREAD_ID) in TIDMatches() 67 return thread_id == m_tid; in TIDMatches()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/TSan/ |
| H A D | InstrumentationRuntimeTSan.cpp | 269 uint64_t thread_id = in GetRenumberedThreadIds() local 288 thread_id_map[thread_id] = lldb_user_id; in GetRenumberedThreadIds() 949 lldb::tid_t thread_id = in GenerateThreadName() local 968 is_write ? "mutating" : "read-only", thread_id); in GenerateThreadName() 971 result = Sprintf("modifying access by thread %d", thread_id); in GenerateThreadName() 975 size, addr_string.c_str(), thread_id); in GenerateThreadName() 980 lldb::tid_t thread_id = in GenerateThreadName() local 982 result = Sprintf("Thread %zu created", thread_id); in GenerateThreadName() 988 lldb::tid_t thread_id = in GenerateThreadName() local 993 result = Sprintf("Heap block allocated by thread %" PRIu64, thread_id); in GenerateThreadName() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
| H A D | NativeProcessFreeBSD.cpp | 815 bool NativeProcessFreeBSD::HasThreadNoLock(lldb::tid_t thread_id) { in HasThreadNoLock() argument 818 if (thread->GetID() == thread_id) { in HasThreadNoLock() 828 NativeThreadFreeBSD &NativeProcessFreeBSD::AddThread(lldb::tid_t thread_id) { in AddThread() argument 830 LLDB_LOG(log, "pid {0} adding thread with tid {1}", GetID(), thread_id); in AddThread() 832 assert(thread_id > 0); in AddThread() 833 assert(!HasThreadNoLock(thread_id) && in AddThread() 838 SetCurrentThreadID(thread_id); in AddThread() 840 m_threads.push_back(std::make_unique<NativeThreadFreeBSD>(*this, thread_id)); in AddThread() 844 void NativeProcessFreeBSD::RemoveThread(lldb::tid_t thread_id) { in RemoveThread() argument 846 LLDB_LOG(log, "pid {0} removing thread with tid {1}", GetID(), thread_id); in RemoveThread() [all …]
|
| H A D | NativeProcessFreeBSD.h | 112 bool HasThreadNoLock(lldb::tid_t thread_id); 114 NativeThreadFreeBSD &AddThread(lldb::tid_t thread_id); 115 void RemoveThread(lldb::tid_t thread_id);
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
| H A D | NativeProcessNetBSD.h | 106 bool HasThreadNoLock(lldb::tid_t thread_id); 108 NativeThreadNetBSD &AddThread(lldb::tid_t thread_id); 109 void RemoveThread(lldb::tid_t thread_id);
|
| H A D | NativeProcessNetBSD.cpp | 831 bool NativeProcessNetBSD::HasThreadNoLock(lldb::tid_t thread_id) { in HasThreadNoLock() argument 834 if (thread->GetID() == thread_id) { in HasThreadNoLock() 844 NativeThreadNetBSD &NativeProcessNetBSD::AddThread(lldb::tid_t thread_id) { in AddThread() argument 846 LLDB_LOG(log, "pid {0} adding thread with tid {1}", GetID(), thread_id); in AddThread() 848 assert(thread_id > 0); in AddThread() 849 assert(!HasThreadNoLock(thread_id) && in AddThread() 854 SetCurrentThreadID(thread_id); in AddThread() 856 m_threads.push_back(std::make_unique<NativeThreadNetBSD>(*this, thread_id)); in AddThread() 860 void NativeProcessNetBSD::RemoveThread(lldb::tid_t thread_id) { in RemoveThread() argument 862 LLDB_LOG(log, "pid {0} removing thread with tid {1}", GetID(), thread_id); in RemoveThread() [all …]
|
| /freebsd/contrib/googletest/googletest/src/ |
| H A D | gtest-port.cc | 433 DWORD thread_id; in CreateThread() local 440 &thread_id); // Need a valid pointer for the call to work under Win98. in CreateThread() 556 static void OnThreadExit(DWORD thread_id) { in OnThreadExit() argument 557 GTEST_CHECK_(thread_id != 0) << ::GetLastError(); in OnThreadExit() 566 thread_to_thread_locals->find(thread_id); in OnThreadExit() 591 DWORD thread_id; member 596 static void StartWatcherThreadFor(DWORD thread_id) { in StartWatcherThreadFor() argument 600 ::OpenThread(SYNCHRONIZE | THREAD_QUERY_INFORMATION, FALSE, thread_id); in StartWatcherThreadFor() 604 watcher_thread_params->thread_id = thread_id; in StartWatcherThreadFor() 640 OnThreadExit(watcher_thread_params->thread_id); in WatcherThreadFunc()
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Breakpoint/ |
| H A D | WatchpointOptions.h | 43 /// \param[in] thread_id 44 /// Only stop if \a thread_id hits the watchpoint. 46 lldb::tid_t thread_id = LLDB_INVALID_THREAD_ID); 146 void SetThreadID(lldb::tid_t thread_id);
|
| H A D | BreakpointLocation.h | 143 void SetThreadID(lldb::tid_t thread_id); 344 void SetThreadIDInternal(lldb::tid_t thread_id);
|
| /freebsd/sys/arm64/spe/ |
| H A D | arm_spe_backend.c | 238 printf("TID %u:\n", thr->thread_id); in spe_backend_deinit() 297 spe_backend_configure(struct hwt_context *ctx, int cpu_id, int thread_id) in spe_backend_configure() argument 308 if (thr->thread_id != thread_id) in spe_backend_configure() 321 info->ident = thread_id; in spe_backend_configure() 661 if (thr->thread_id != s->ident) in spe_backend_svc_buf() 748 snprintf(lock_name, sizeof(lock_name), "Arm SPE lock/thr/%d", thr->thread_id); in spe_backend_thread_alloc()
|
| /freebsd/contrib/llvm-project/lldb/source/Breakpoint/ |
| H A D | BreakpointLocation.cpp | 97 void BreakpointLocation::SetThreadID(lldb::tid_t thread_id) { in SetThreadID() argument 98 SetThreadIDInternal(thread_id); in SetThreadID() 719 void BreakpointLocation::SetThreadIDInternal(lldb::tid_t thread_id) { in SetThreadIDInternal() argument 720 if (thread_id != LLDB_INVALID_THREAD_ID) in SetThreadIDInternal() 721 GetLocationOptions().SetThreadID(thread_id); in SetThreadIDInternal() 726 m_options_up->SetThreadID(thread_id); in SetThreadIDInternal()
|
| H A D | WatchpointOptions.cpp | 114 void WatchpointOptions::SetThreadID(lldb::tid_t thread_id) { in SetThreadID() argument 115 GetThreadSpec()->SetTID(thread_id); in SetThreadID()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_stoptheworld_win.cpp | 112 for (const auto thread_id : suspended_threads_list.threadIds) { in RunThread() local 113 if (thread_id == thread_entry.th32ThreadID) { in RunThread()
|
| H A D | sanitizer_stoptheworld_netbsd_libcdep.cpp | 57 bool ContainsTid(tid_t thread_id) const; 325 bool SuspendedThreadsListNetBSD::ContainsTid(tid_t thread_id) const { in ContainsTid() 327 if (thread_ids_[i] == thread_id) in ContainsTid()
|
| H A D | sanitizer_stoptheworld_linux_libcdep.cpp | 99 bool ContainsTid(tid_t thread_id) const; 140 bool SuspendThread(tid_t thread_id); 558 bool SuspendedThreadsListLinux::ContainsTid(tid_t thread_id) const { in ContainsTid() 560 if (thread_ids_[i] == thread_id) return true; in ContainsTid()
|
| /freebsd/usr.bin/top/ |
| H A D | top.c | 289 ps.thread_id = false; in main() 436 ps.thread_id = !ps.thread_id; in main() 997 ps.thread_id = !ps.thread_id; in main() 1000 ps.thread_id ? "tid" : "pid"); in main()
|
| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | ThreadSpec.cpp | 80 lldb::tid_t thread_id = thread.GetID(); in TIDMatches() local 81 return TIDMatches(thread_id); in TIDMatches()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_report.cpp | 147 u32 thread_id() const { return thread_id_; } in thread_id() function in __hwasan::__anon865875d10111::SavedStackAllocations 500 u32 thread_id = 0; member 713 result.heap.thread_id = chunk.GetAllocThreadId(); in FindBufferOverflowCandidate() 744 Printf("allocated by thread T%u here:\n", candidate.heap.thread_id); in PrintHeapOrGlobalCandidate() 811 auto announce_by_id = [](u32 thread_id) { in PrintAddressDescription() argument 813 if (thread_id == t->unique_id()) in PrintAddressDescription() 825 sa.thread_id()); in PrintAddressDescription() 827 announce_by_id(sa.thread_id()); in PrintAddressDescription()
|