/system/extras/memory_replay/tests/ |
H A D | ThreadsTest.cpp | 27 Threads threads(&pointers, 1); 28 Thread* thread = threads.CreateThread(900); 30 ASSERT_EQ(1U, threads.num_threads()); 32 Thread* found_thread = threads.FindThread(900); 39 threads.Finish(thread); 41 ASSERT_EQ(0U, threads.num_threads()); 47 Threads threads(&pointers, 1); 48 Thread* thread1 = threads.CreateThread(900); 50 ASSERT_EQ(1U, threads.num_threads()); 52 Thread* thread2 = threads [all...] |
/system/core/libbacktrace/ |
H A D | thread_utils.h | 23 #include <cutils/threads.h>
|
/system/extras/memory_replay/ |
H A D | main.cpp | 72 Threads threads(&pointers, max_threads); 74 printf("Maximum threads available: %zu\n", threads.max_threads()); 103 Thread* thread = threads.FindThread(tid); 105 thread = threads.CreateThread(tid); 119 // Make sure that any other threads doing allocations are complete 122 threads.WaitForAllToQuiesce(); 130 threads.Finish(thread); 140 // Wait for all threads to stop processing actions. 141 threads [all...] |
H A D | Threads.cpp | 56 err(1, "Failed to map in memory for Threads: map size %zu, max threads %zu\n", 78 err(1, "Too many threads created, current max %zu.\n", num_threads_); 82 err(1, "No empty entries found, current max %zu, num threads %zu\n", 114 for (size_t i = 0, threads = 0; threads < num_threads_; i++) { 117 threads++;
|
/system/extras/libfec/ |
H A D | fec_process.cpp | 42 /* launches a maximum number of threads to process a read */ 54 int threads = sysconf(_SC_NPROCESSORS_ONLN); local 56 if (threads < WORK_MIN_THREADS) { 57 threads = WORK_MIN_THREADS; 58 } else if (threads > WORK_MAX_THREADS) { 59 threads = WORK_MAX_THREADS; 65 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; 68 if ((size_t)threads > max_threads) { 69 threads = (int)max_threads; 76 debug("%d threads, [all...] |
/system/libhwbinder/include/hwbinder/ |
H A D | Static.h | 20 #include <utils/threads.h>
|
H A D | BufferedTextOutput.h | 21 #include <utils/threads.h>
|
/system/core/libmemunreachable/tests/ |
H A D | ThreadCapture_test.cpp | 54 void StartThreads(unsigned int threads, Function&& func) { argument 55 threads_.reserve(threads); 56 tids_.reserve(threads); 57 for (unsigned int i = 0; i < threads; i++) { 58 threads_.emplace_back([&, threads, this]() { 62 if (tids_.size() == threads) { 78 cv_start_.wait(lk, [&] { return tids_.size() == threads; }); 142 const unsigned int threads = GetParam() - 1; local 144 StartThreads(threads, []() {}); 208 const unsigned int threads local [all...] |
/system/extras/verity/fec/ |
H A D | image.cpp | 354 int threads = ctx->threads; local 356 if (threads < IMAGE_MIN_THREADS) { 357 threads = sysconf(_SC_NPROCESSORS_ONLN); 359 if (threads < IMAGE_MIN_THREADS) { 360 threads = IMAGE_MIN_THREADS; 366 if ((uint64_t)threads > ctx->rounds) { 367 threads = (int)ctx->rounds; 369 if (threads > IMAGE_MAX_THREADS) { 370 threads [all...] |
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
H A D | tombstone.h | 43 const std::map<pid_t, std::string>& threads, uint64_t abort_msg_address,
|
/system/core/libmemunreachable/ |
H A D | ThreadCapture.h | 46 bool CapturedThreadInfo(ThreadInfoList& threads);
|
H A D | ThreadCapture.cpp | 82 bool CapturedThreadInfo(ThreadInfoList& threads); 323 bool ThreadCaptureImpl::CapturedThreadInfo(ThreadInfoList& threads) { argument 324 threads.clear(); 331 threads.push_back(t); 359 bool ThreadCapture::CapturedThreadInfo(ThreadInfoList& threads) { argument 360 return impl_->CapturedThreadInfo(threads);
|
/system/core/libutils/tests/ |
H A D | TestHelpers.h | 20 #include <utils/threads.h>
|
/system/extras/simpleperf/include/ |
H A D | simpleperf.h | 59 // PerfEventSet is not thread-safe. To access it from different threads, please protect 75 // Set monitored target. You can only monitor threads in current process. 78 virtual bool MonitorThreadsInCurrentProcess(const std::vector<pid_t>& threads);
|
/system/core/init/ |
H A D | ueventd_test.cpp | 56 std::vector<std::thread> threads; local 62 threads.emplace_back(std::thread(make_thread_function(file, parameter))); 65 for (auto& thread : threads) { 191 std::vector<std::thread> threads; local 192 std::generate_n(back_inserter(threads), num_threads, 197 for (auto& thread : threads) {
|
/system/core/libsync/ |
H A D | sync_test.c | 79 pthread_t threads[4]; local 119 pthread_create(&threads[i], NULL, sync_thread, &sync_data[i]); 143 pthread_join(threads[i], &val);
|
/system/core/libunwindstack/tests/ |
H A D | MapInfoGetLoadBiasTest.cpp | 96 std::vector<std::thread*> threads; local 100 // Create all of the threads and have them do the GetLoadBias at the same time 108 threads.push_back(thread); 111 // Set them all going and wait for the threads to finish. 113 for (auto thread : threads) {
|
/system/extras/simpleperf/ |
H A D | event_selection_set.h | 111 void AddMonitoredThreads(const std::set<pid_t>& threads) { argument 112 threads_.insert(threads.begin(), threads.end()); 138 // Stop profiling if all monitored processes/threads don't exist.
|
H A D | record_lib_interface.cpp | 84 bool MonitorThreadsInCurrentProcess(const std::vector<pid_t>& threads) override { 87 for (auto& tid : threads) { 93 threads_.insert(threads.begin(), threads.end()); 147 LOG(ERROR) << "No monitored threads.";
|
/system/extras/simpleperf/scripts/inferno/ |
H A D | data_types.py | 56 self.threads = {} 67 thread = self.threads.get(tid) 69 thread = self.threads[tid] = Thread(tid, pid)
|
H A D | inferno.py | 131 main_threads = [thread for thread in process.threads.values() if thread.tid == thread.pid] 136 for thread in process.threads.values(): 191 len(process.threads), 210 # Sort threads by the event count in a thread. 211 for thread in sorted(process.threads.values(), key=lambda x: x.num_events, reverse=True): 224 for thread in process.threads.values():
|
/system/core/debuggerd/client/ |
H A D | debuggerd_client_test.cpp | 59 // Spawn a bunch of threads, to make crash_dump take longer. 60 std::vector<std::thread> threads; local 62 threads.emplace_back([]() { 80 // Wait for a bit to let the child spawn all of its threads.
|
/system/chre/build/arch/ |
H A D | hexagon.mk | 69 TARGET_SO_LDFLAGS += --no-threads
|
/system/extras/iotop/ |
H A D | taskstats.h | 44 int threads() const { return threads_; } function in class:TaskStatistics
|
/system/core/libcutils/ |
H A D | threads.cpp | 17 #include <cutils/threads.h>
|