| /llvm-project-15.0.7/libc/test/integration/src/threads/ |
| H A D | CMakeLists.txt | 6 libc-threads-integration-tests 12 libc.include.threads 15 libc.src.threads.mtx_init 16 libc.src.threads.mtx_lock 19 libc.src.threads.thrd_join 31 libc.include.threads 33 libc.src.threads.mtx_init 34 libc.src.threads.mtx_lock 51 libc.include.threads 66 libc.include.threads [all …]
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-server/vCont-threads/ |
| H A D | TestSignal.py | 25 return threads 64 threads) 78 threads[:1]) 97 threads) 115 threads) 132 threads) 147 threads) 167 threads) 185 threads) 202 threads) [all …]
|
| /llvm-project-15.0.7/libc/src/threads/ |
| H A D | CMakeLists.txt | 19 libc.src.__support.threads.thread 20 libc.include.threads 34 libc.include.threads 35 libc.src.__support.threads.thread 45 libc.include.threads 56 libc.include.threads 67 libc.include.threads 78 libc.include.threads 89 libc.include.threads 100 libc.include.threads [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/stepping/ |
| H A D | TestStepAndBreakpoints.py | 67 if len(threads) != 1: 70 thread = threads[0] 81 if len(threads) != 1: 90 thread = threads[0] 97 if len(threads) != 1: 99 thread = threads[0] 195 thread = threads[0] 240 thread = threads[0] 251 thread = threads[0] 263 thread = threads[0] [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/ |
| H A D | compare_exchange.cpp | 60 std::thread threads[NUM_THREADS]; in main() local 66 threads[t] = std::thread(f1, t); in main() 68 threads[t].join(); in main() 69 threads[t + 1].join(); in main() 74 threads[t] = std::thread(f1, t); in main() 76 threads[t].join(); in main() 77 threads[t + 1].join(); in main() 84 threads[t].join(); in main() 85 threads[t + 1].join(); in main() 92 threads[t].join(); in main() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/objc/objc-stepping/ |
| H A D | TestObjCStepping.py | 85 if len(threads) != 1: 88 thread = threads[0] 120 len(threads), 1, 125 thread = threads[0] 135 len(threads), 1, 137 thread = threads[0] 151 len(threads), 1, 165 thread = threads[0] 182 len(threads), 1, 184 thread = threads[0] [all …]
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/inline-stepping/ |
| H A D | TestInlineStepping.py | 72 if len(threads) != 1: 81 self.thread = threads[0] 162 if len(threads) != 1: 165 self.thread = threads[0] 199 len(threads), 1, 201 self.thread = threads[0] 237 len(threads), 1, 239 self.thread = threads[0] 274 if len(threads) != 1: 308 if len(threads) != 1: [all …]
|
| /llvm-project-15.0.7/lldb/test/API/macosx/thread_suspend/ |
| H A D | TestInternalThreadSuspension.py | 68 threads = lldbutil.continue_to_breakpoint(process, rt_bp) 69 self.assertEqual(len(threads), 1, "Hit the running_func breakpoint") 75 self.try_an_expression(threads[0], 0, st_bp) 78 threads = lldbutil.continue_to_breakpoint(process, rt_bp) 79 self.assertEqual(len(threads), 1, "We didn't hit running breakpoint") 83 for thread in process.threads: 95 threads = lldbutil.continue_to_breakpoint(process, rt_exit_bp) 96 self.assertEqual(len(threads), 1) 100 threads = lldbutil.continue_to_breakpoint(process, st_bp) 101 self.assertEqual(len(threads), 1, "The thread resumed successfully") [all …]
|
| /llvm-project-15.0.7/libc/src/threads/linux/ |
| H A D | CMakeLists.txt | 10 libc.include.threads 22 libc.include.threads 25 libc.src.__support.threads.mutex 26 libc.src.__support.threads.linux.futex_word_type 37 libc.include.threads 48 libc.include.threads 59 libc.include.threads 60 libc.src.__support.threads.mutex 71 libc.include.threads 82 libc.include.threads
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/exec/ |
| H A D | TestExec.py | 73 threads = lldbutil.get_threads_stopped_at_breakpoint( 75 self.assertEqual(len(threads), 1) 81 thread = threads[0] 98 threads = lldbutil.get_stopped_threads( 101 len(threads), 1, 110 for t in process.threads: 114 self.assertEqual(len(threads), 1, 142 self.assertEqual(len(threads), 1) 168 threads = lldbutil.get_stopped_threads( 171 len(threads), 1, [all …]
|
| /llvm-project-15.0.7/libc/test/integration/src/__support/threads/ |
| H A D | CMakeLists.txt | 1 if(NOT (TARGET libc.src.__support.threads.thread AND 2 TARGET libc.src.__support.threads.mutex)) 6 add_libc_integration_test_suite(libc-support-threads-integration-tests) 11 libc-support-threads-integration-tests 17 libc.src.__support.threads.mutex 18 libc.src.__support.threads.thread 24 libc-support-threads-integration-tests 30 libc.src.__support.threads.thread
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/thread_plan/ |
| H A D | TestThreadPlanCommands.py | 95 threads = lldbutil.get_threads_stopped_at_breakpoint(process, call_me_bkpt) 96 self.assertEqual(len(threads), 1, "Hit my breakpoint while stepping over") 98 current_id = threads[0].GetIndexID() 99 current_tid = threads[0].GetThreadID() 130 self.assertEqual(len(threads), 1, "One thread completed a step") 144 threads = lldbutil.continue_to_breakpoint(process, second_step_bkpt) 145 self.assertEqual(len(threads), 1, "Hit the second step breakpoint") 147 threads[0].StepOver() 160 threads = lldbutil.get_threads_stopped_at_breakpoint(process, final_bkpt) 161 self.assertEqual(len(threads), 1, "Ran to final breakpoint") [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_trace_test.cpp | 37 for (auto *&thr : threads) { in ThreadArray() 49 if (threads[i]) in ~ThreadArray() 55 auto *thr = threads[i]; in Finish() 56 threads[i] = nullptr; in Finish() 64 ThreadState *threads[N]; member 278 ThreadArray<2> threads; in TRACE_TEST() local 288 threads.Finish(0); in TRACE_TEST() 290 threads.Finish(1); in TRACE_TEST() 298 ThreadArray<kThreads> threads; in TRACE_TEST() local 308 threads.Finish(i); in TRACE_TEST() [all …]
|
| /llvm-project-15.0.7/openmp/runtime/test/parallel/ |
| H A D | omp_parallel_num_threads.c | 8 int threads; in test_omp_parallel_num_threads() local 22 for(threads = 1; threads <= max_threads; threads++) { in test_omp_parallel_num_threads() 24 #pragma omp parallel reduction(+:num_failed) num_threads(threads) in test_omp_parallel_num_threads() 26 num_failed = num_failed + !(threads == omp_get_num_threads()); in test_omp_parallel_num_threads() 30 num_failed = num_failed + !(nthreads == threads); in test_omp_parallel_num_threads()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-cov/ |
| H A D | multithreaded-report.test | 1 # Test "report" command with and without multiple threads. 3 RUN: llvm-cov report -num-threads=1 \ 8 RUN: llvm-cov report -num-threads=10 \ 16 RUN: llvm-cov export -num-threads=1 \ 21 RUN: llvm-cov export -num-threads=10 \ 29 RUN: llvm-cov show -format=text -num-threads=1 \ 34 RUN: llvm-cov show -format=text -num-threads=10 \ 42 RUN: llvm-cov show -format=html -num-threads=1 \ 47 RUN: llvm-cov show -format=html -num-threads=10 \ 55 RUN: llvm-cov show -format=text -num-threads=1 \ [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/objc/objc-dynamic-value/ |
| H A D | TestObjCDynamicValue.py | 67 threads = lldbutil.get_threads_stopped_at_breakpoint( 69 self.assertEquals(len(threads), 1) 70 thread = threads[0] 128 threads = lldbutil.get_stopped_threads( 130 self.assertEquals(len(threads), 1) 141 threads = lldbutil.continue_to_breakpoint( 143 self.assertEquals(len(threads), 1) 144 thread = threads[0] 181 threads = lldbutil.continue_to_breakpoint( 183 self.assertEquals(len(threads), 1) [all …]
|
| /llvm-project-15.0.7/libcxxabi/test/ |
| H A D | guard_threaded_test.pass.cpp | 179 for (auto& t : threads) { in JoinAll() 185 std::vector<std::thread> threads; member 193 ThreadGroup threads; in test_free_for_all() local 204 threads.JoinAll(); in test_free_for_all() 214 ThreadGroup threads; in test_waiting_for_init() local 238 threads.JoinAll(); in test_waiting_for_init() 251 ThreadGroup threads; in test_aborted_init() local 252 threads.Create(test_obj.access_callback( in test_aborted_init() 272 threads.JoinAll(); in test_aborted_init() 290 ThreadGroup threads; in test_completed_init() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_mutex_test.cpp | 131 pthread_t threads[kThreads]; in TEST() local 133 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST() 135 PTHREAD_JOIN(threads[i], 0); in TEST() 142 pthread_t threads[kThreads]; in TEST() local 144 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST() 146 PTHREAD_JOIN(threads[i], 0); in TEST() 152 pthread_t threads[kThreads]; in TEST() local 155 for (int i = 0; i < kThreads; i++) PTHREAD_JOIN(threads[i], 0); in TEST() 161 pthread_t threads[kThreads]; in TEST() local 163 PTHREAD_CREATE(&threads[i], 0, try_thread<Mutex>, &data); in TEST() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/macosx/indirect_symbol/ |
| H A D | TestIndirectSymbols.py | 50 threads = lldbutil.get_threads_stopped_at_breakpoint(process, break1) 51 if len(threads) != 1: 54 thread = threads[0] 71 threads = lldbutil.continue_to_breakpoint(process, break_indirect) 73 len(threads), 1, 85 threads = lldbutil.continue_to_breakpoint(process, break2) 104 threads = lldbutil.continue_to_breakpoint(process, break_reexported) 106 len(threads), 1,
|
| /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/Linux/ |
| H A D | create-thread-stress.cpp | 22 std::vector<std::thread> threads; in Thread() local 24 threads.emplace_back([]() {}); in Thread() 25 for (auto &t : threads) in Thread() 31 std::vector<std::thread> threads; in run() local 33 threads.emplace_back(Thread); in run() 34 for (auto &t : threads) in run()
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | threads.s | 5 # RUN: %lld --threads=1 %t.o -o /dev/null 6 # RUN: %lld --threads=2 %t.o -o /dev/null 8 # RUN: not %lld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all 9 # RUN: not %lld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=0 10 # RUN: not %lld --threads=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-1 12 # CHECK: error: --threads=: expected a positive integer, but got '[[N]]'
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | threads.s | 5 # RUN: ld.lld --threads=1 %t.o -o /dev/null 6 # RUN: ld.lld --threads=2 %t.o -o /dev/null 8 # RUN: not ld.lld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all 9 # RUN: not ld.lld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=0 10 # RUN: not ld.lld --threads=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-1 12 # CHECK: error: --threads: expected a positive integer, but got '[[N]]'
|
| /llvm-project-15.0.7/lldb/test/API/lang/cpp/dynamic-value/ |
| H A D | TestDynamicValue.py | 65 threads = lldbutil.get_threads_stopped_at_breakpoint( 67 self.assertEquals(len(threads), 1) 68 thread = threads[0] 88 threads = lldbutil.continue_to_breakpoint(process, do_something_bpt) 89 self.assertEquals(len(threads), 1) 90 thread = threads[0] 162 threads = lldbutil.continue_to_breakpoint(process, second_call_bpt) 163 self.assertEquals(len(threads), 1) 164 thread = threads[0] 175 self.assertEquals(len(threads), 1) [all …]
|
| /llvm-project-15.0.7/lldb/examples/python/ |
| H A D | operating_system.py | 17 self.threads = None 20 self.threads = None # Will be an dictionary containing info for each thread 36 self.threads.append(thread_info) 41 if not self.threads: 59 self.threads = [{'tid': 0x111111111, 75 return self.threads
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/plugins/python_os_plugin/ |
| H A D | operating_system2.py | 17 self.threads = None 20 self.threads = None # Will be an dictionary containing info for each thread 36 self.threads.append(thread_info) 41 if not self.threads: 59 self.threads = [ 62 return self.threads
|