Home
last modified time | relevance | path

Searched refs:thread_count (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/lldb/test/API/macosx/queues/
H A Dmain.c8 atomic_int thread_count = 0; variable
15 atomic_fetch_add(&thread_count, 1); in doing_the_work_1()
34 atomic_fetch_add(&thread_count, 1); in submit_work_1b()
42 atomic_fetch_add(&thread_count, 1); in doing_the_work_2()
65 atomic_fetch_add(&thread_count, 1); in doing_the_work_3()
111 atomic_fetch_add(&thread_count, 1); in main()
117 atomic_fetch_add(&thread_count, 1); in main()
123 atomic_fetch_add(&thread_count, 1); in main()
129 atomic_fetch_add(&thread_count, 1); in main()
135 atomic_fetch_add(&thread_count, 1); in main()
[all …]
/llvm-project-15.0.7/libc/test/integration/src/threads/
H A Dthrd_test.cpp16 static constexpr int thread_count = 1000; variable
24 for (counter = 0; counter <= thread_count;) { in create_and_join()
29 int retval = thread_count + 1; // Start with a retval we dont expect. in create_and_join()
39 thrd_t thread_list[thread_count]; in spawn_and_join()
40 int args[thread_count]; in spawn_and_join()
42 for (int i = 0; i < thread_count; ++i) { in spawn_and_join()
48 for (int i = 0; i < thread_count; ++i) { in spawn_and_join()
49 int retval = thread_count + 1; // Start with a retval we dont expect. in spawn_and_join()
H A Dcall_once_test.cpp23 static __llvm_libc::cpp::Atomic<unsigned int> thread_count; variable
32 thread_count.fetch_add(1); in func()
40 thread_count = 0; in call_from_5_threads()
55 EXPECT_EQ(thread_count.val, 5U); in call_from_5_threads()
/llvm-project-15.0.7/libc/test/integration/src/pthread/
H A Dpthread_test.cpp15 static constexpr int thread_count = 1000; variable
23 for (counter = 0; counter <= thread_count;) { in create_and_join()
30 void *retval = reinterpret_cast<void *>(thread_count + 1); in create_and_join()
40 pthread_t thread_list[thread_count]; in spawn_and_join()
41 int args[thread_count]; in spawn_and_join()
43 for (int i = 0; i < thread_count; ++i) { in spawn_and_join()
50 for (int i = 0; i < thread_count; ++i) { in spawn_and_join()
52 void *retval = reinterpret_cast<void *>(thread_count + 1); in spawn_and_join()
/llvm-project-15.0.7/lldb/test/API/tools/lldb-server/
H A DTestGdbRemoteThreadsInStopReply.py17 def gather_stop_reply_fields(self, thread_count, field_names): argument
18 context, threads = self.launch_with_threads(thread_count)
41 def gather_stop_reply_threads(self, thread_count): argument
44 thread_count, ["threads"])["threads"]
51 def gather_stop_reply_pcs(self, thread_count): argument
153 thread_count = 5
156 stop_reply_threads = self.gather_stop_reply_threads(thread_count)
167 self.assertGreaterEqual(len(threads), thread_count)
177 thread_count = 5
180 results = self.gather_stop_reply_pcs(thread_count)
[all …]
/llvm-project-15.0.7/lldb/unittests/tools/lldb-server/inferior/
H A Dthread_inferior.cpp16 int thread_count = 2; in main() local
18 thread_count = std::stoi(argv[1], nullptr, 10); in main()
23 for (int i = 0; i < thread_count; i++) { in main()
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Ddebugging.cpp17 int *mutex_count, int *thread_count,
59 int stack_count, mop_count, loc_count, mutex_count, thread_count, in __tsan_on_report() local
63 &loc_count, &mutex_count, &thread_count, in __tsan_on_report()
92 fprintf(stderr, "thread_count = %d\n", thread_count); in __tsan_on_report()
/llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/
H A Dexternal-swift-debugging.cpp12 int *mutex_count, int *thread_count,
52 int stack_count, mop_count, loc_count, mutex_count, thread_count, in __tsan_on_report() local
56 &loc_count, &mutex_count, &thread_count, in __tsan_on_report()
/llvm-project-15.0.7/lldb/tools/darwin-threads/
H A Dexamine-threads.c386 mach_msg_type_number_t thread_count; in main() local
388 kr = task_threads(task, &thread_list, &thread_count); in main()
393 printf("pid %d has %d threads\n", pid, thread_count); in main()
397 for (i = 0; i < thread_count; i++) { in main()
492 thread_count * sizeof(thread_act_t)); in main()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dbenchmark_api_internal.cc13 int thread_count) in BenchmarkInstance() argument
29 threads_(thread_count) { in BenchmarkInstance()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest-death-test.cc240 static std::string DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument
244 if (thread_count == 0) { in DeathTestThreadWarning()
247 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning()
1120 const size_t thread_count = GetThreadCount(); in AssumeRole() local
1121 if (thread_count != 1) { in AssumeRole()
1122 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
H A Dgtest-port.cc127 mach_msg_type_number_t thread_count; in GetThreadCount() local
129 const kern_return_t status = task_threads(task, &thread_list, &thread_count); in GetThreadCount()
135 sizeof(thread_t) * thread_count); in GetThreadCount()
136 return static_cast<size_t>(thread_count); in GetThreadCount()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_debugging.cpp74 int *mutex_count, int *thread_count, in __tsan_get_report_data() argument
84 *thread_count = rep->threads.Size(); in __tsan_get_report_data()
H A Dtsan_interface.h120 int *mutex_count, int *thread_count,
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_debugging.cpp74 int *mutex_count, int *thread_count, in __tsan_get_report_data() argument
84 *thread_count = rep->threads.Size(); in __tsan_get_report_data()
H A Dtsan_interface.h120 int *mutex_count, int *thread_count,
/llvm-project-15.0.7/lldb/source/Plugins/Process/scripted/
H A DScriptedProcess.cpp337 size_t thread_count = thread_info_sp->GetSize(); in DoUpdateThreadList() local
339 if (!keys->ForEach(sort_keys) || sorted_threads.size() != thread_count) in DoUpdateThreadList()
/llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/tools/lldb-server/
H A Dgdbremote_testcase.py775 def launch_with_threads(self, thread_count): argument
777 inferior_args=["thread:new"]*(thread_count-1) + ["trap"])
787 self.assertGreaterEqual(len(threads), thread_count)
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/Minidump/
H A DMinidumpFileBuilder.cpp419 llvm::support::ulittle32_t thread_count = in AddThreadList() local
421 m_data.AppendData(&thread_count, sizeof(llvm::support::ulittle32_t)); in AddThreadList()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DIntrinsicsAMDGPU.td187 // thread_count = (input >> bitoffset) & 0x7f;