Searched refs:threads (Results 1 - 25 of 53) sorted by relevance

123

/system/extras/memory_replay/tests/
H A DThreadsTest.cpp27 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 Dthread_utils.h23 #include <cutils/threads.h>
/system/extras/memory_replay/
H A Dmain.cpp72 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 DThreads.cpp56 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 Dfec_process.cpp42 /* 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 DStatic.h20 #include <utils/threads.h>
H A DBufferedTextOutput.h21 #include <utils/threads.h>
H A DBpHwBinder.h22 #include <utils/threads.h>
/system/core/libmemunreachable/tests/
H A DThreadCapture_test.cpp54 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 Dimage.cpp355 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 Dbacktrace.h34 const std::map<pid_t, std::string>& threads, std::string* amfd_data);
H A Dtombstone.h40 const std::map<pid_t, std::string>& threads, uintptr_t abort_msg_address,
/system/extras/simpleperf/inferno/
H A Ddata_types.py64 self.threads = {}
71 if (tid not in self.threads.keys()):
72 self.threads[tid] = Thread(tid)
73 return self.threads[tid]
H A Dinferno.py151 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 Dueventd_test.cpp51 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 DThreadCapture.h46 bool CapturedThreadInfo(ThreadInfoList& threads);
H A DThreadCapture.cpp82 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 DTestHelpers.h20 #include <utils/threads.h>
/system/extras/simpleperf/include/
H A Dsimpleperf.h59 // 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 Dbacktrace.cpp77 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 Dsync_test.c79 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 Devent_selection_set.h96 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 Drecord_lib_interface.cpp84 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 Ddebuggerd_client_test.cpp59 // 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 Dtaskstats.h44 int threads() const { return threads_; } function in class:TaskStatistics

Completed in 2431 milliseconds

123