/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>
|
H A D | BpHwBinder.h | 22 #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 | 355 int threads = ctx->threads; local 357 if (threads < IMAGE_MIN_THREADS) { 358 threads = sysconf(_SC_NPROCESSORS_ONLN); 360 if (threads < IMAGE_MIN_THREADS) { 361 threads = IMAGE_MIN_THREADS; 367 if ((uint64_t)threads > ctx->rounds) { 368 threads = (int)ctx->rounds; 370 if (threads > IMAGE_MAX_THREADS) { 371 threads [all...] |
/system/core/debuggerd/libdebuggerd/include/ |
H A D | backtrace.h | 34 const std::map<pid_t, std::string>& threads, std::string* amfd_data);
|
H A D | tombstone.h | 40 const std::map<pid_t, std::string>& threads, uintptr_t abort_msg_address,
|
/system/extras/simpleperf/inferno/ |
H A D | data_types.py | 64 self.threads = {} 71 if (tid not in self.threads.keys()): 72 self.threads[tid] = Thread(tid) 73 return self.threads[tid]
|
H A D | inferno.py | 151 for _, thread in process.threads.items(): 195 len(process.threads), 205 main_thread = [x for _, x in process.threads.items() if x.tid == process.pid] 210 other_threads = [x for _, x in process.threads.items() if x.tid != process.pid] 229 for _, thread in process.threads.items():
|
/system/core/init/ |
H A D | ueventd_test.cpp | 51 std::vector<std::thread> threads; local 57 threads.emplace_back(std::thread(make_thread_function(file, parameter))); 60 for (auto& thread : threads) {
|
/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/debuggerd/libdebuggerd/ |
H A D | backtrace.cpp | 77 const std::map<pid_t, std::string>& threads, std::string* amfd_data) { 83 dump_thread(&log, map, pid, tid, threads.find(tid)->second.c_str()); 85 for (const auto& it : threads) { 76 dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, const std::string& process_name, const std::map<pid_t, std::string>& threads, std::string* amfd_data) argument
|
/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/extras/simpleperf/ |
H A D | event_selection_set.h | 96 void AddMonitoredThreads(const std::set<pid_t>& threads) { argument 97 threads_.insert(threads.begin(), threads.end()); 123 // 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/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/extras/iotop/ |
H A D | taskstats.h | 44 int threads() const { return threads_; } function in class:TaskStatistics
|