Home
last modified time | relevance | path

Searched refs:pids (Results 1 – 25 of 27) sorted by relevance

12

/system/extras/simpleperf/
DRecordFilter.cpp28 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions() local
29 AddPids(pids.value(), exclude); in ParseOptions()
58 void RecordFilter::AddPids(const std::set<pid_t>& pids, bool exclude) { in AddPids() argument
61 cond.pids.insert(pids.begin(), pids.end()); in AddPids()
105 if (condition.pids.count(r->tid_data.pid) == 1) { in CheckCondition()
DRecordFilter.h52 std::set<pid_t> pids; member
66 void AddPids(const std::set<pid_t>& pids, bool exclude);
Dcmd_stat.cpp518 std::set<pid_t> pids = WaitForAppProcesses(app_package_name_); in Run() local
519 event_selection_set_.AddMonitoredProcesses(pids); in Run()
681 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions() local
682 event_selection_set_.AddMonitoredProcesses(pids.value()); in ParseOptions()
Dcmd_record.cpp540 std::set<pid_t> pids = WaitForAppProcesses(app_package_name_); in PrepareRecording() local
541 event_selection_set_.AddMonitoredProcesses(pids); in PrepareRecording()
628 std::set<pid_t> pids = event_selection_set_.GetMonitoredProcesses(); in PrepareRecording() local
632 pids.insert(pid); in PrepareRecording()
635 for (pid_t pid : pids) { in PrepareRecording()
937 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions() local
938 event_selection_set_.AddMonitoredProcesses(pids.value()); in ParseOptions()
DRecordFilter_test.cpp163 ASSERT_EQ(filter.GetCondition(exclude).pids, std::set<pid_t>({1, 2, 3})); in TEST_F()
Dcmd_report.cpp605 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions() local
606 sample_tree_builder_options_.pid_filter.insert(pids->begin(), pids->end()); in ParseOptions()
/system/vold/
DProcess.cpp88 std::unordered_set<pid_t> pids; in KillProcessesWithTmpfsMounts() local
117 pids.insert(pid); in KillProcessesWithTmpfsMounts()
123 for (const auto& pid : pids) { in KillProcessesWithTmpfsMounts()
129 return pids.size(); in KillProcessesWithTmpfsMounts()
133 std::unordered_set<pid_t> pids; in KillProcessesWithOpenFiles() local
170 pids.insert(pid); in KillProcessesWithOpenFiles()
177 for (const auto& pid : pids) { in KillProcessesWithOpenFiles()
190 return pids.size(); in KillProcessesWithOpenFiles()
/system/extras/memtrack/
Dmemtrack.cpp154 cur_[cmd_name_].pids.push_back(pid); in getInformation()
168 it->second.pids.clear(); in scan()
207 if (it->second.pids.size() > all_[it->first].max_num_pids) { in scan()
208 all_[it->first].max_num_pids = it->second.pids.size(); in scan()
211 all_[it->first].pids = it->second.pids; in scan()
248 if ((*it)->pids.size() > 0) { in dumpToLog()
250 for (std::vector<int>::const_iterator pid_it = (*it)->pids.begin(); in dumpToLog()
251 pid_it != (*it)->pids.end(); ++pid_it) { in dumpToLog()
Dmemtrack.h63 std::vector<int> pids; member
70 std::vector<int> pids; member
/system/core/init/
Dsigchld_handler.cpp114 void WaitToBeReaped(const std::vector<pid_t>& pids, std::chrono::milliseconds timeout) { in WaitToBeReaped() argument
116 std::vector<pid_t> alive_pids(pids.begin(), pids.end()); in WaitToBeReaped()
130 LOG(INFO) << "Waiting for " << pids.size() << " pids to be reaped took " << t << " with " in WaitToBeReaped()
Dsubcontext_test.cpp60 auto pids = Split(result.error().message(), " "); in TEST() local
61 ASSERT_EQ(2U, pids.size()); in TEST()
63 EXPECT_NE(our_pid, pids[0]); in TEST()
64 EXPECT_EQ(our_pid, pids[1]); in TEST()
Dsigchld_handler.h28 void WaitToBeReaped(const std::vector<pid_t>& pids, std::chrono::milliseconds timeout);
Dreboot.cpp523 std::vector<pid_t> pids; in StopServices() local
524 pids.reserve(services.size()); in StopServices()
530 pids.push_back(s->pid()); in StopServices()
539 WaitToBeReaped(pids, timeout); in StopServices()
/system/memory/libmemtrack/
Dmemtrack_test.cpp43 std::vector<pid_t> pids; in main() local
60 pids.emplace_back(pid); in main()
63 for (auto& pid : pids) { in main()
/system/iorap/src/compiler/
Dmain.cc100 std::vector<int32_t> pids; in Main() local
154 pids.push_back(pid); in Main()
180 if (!pids.empty() && pids.size() != arg_input_filenames.size()) { in Main()
236 MakeCompilationInputs(arg_input_filenames, timestamp_limit_ns, pids); in Main()
Dcompiler.h69 std::vector<int32_t> pids);
Dcompiler.cc844 std::vector<int32_t> pids){ in MakeCompilationInputs() argument
854 if (pids.empty()) { in MakeCompilationInputs()
856 pids.push_back(-1); in MakeCompilationInputs()
863 file_infos.push_back({input_file_names[i], timestamp_limit_ns[i], pids[i]}); in MakeCompilationInputs()
/system/memory/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp71 pid_set.insert(buf.pids().begin(), buf.pids().end()); in PrintDmaBufTable()
141 for (auto pid : buf.pids()) { in PrintDmaBufPerProcess()
167 proc_pss / 1024, buf.pids().size(), static_cast<uintmax_t>(buf.inode())); in PrintDmaBufPerProcess()
/system/core/libprocessgroup/
Dprocessgroup.cpp289 std::set<pid_t> pids; in DoKillProcessGroupOnce() local
306 pids.emplace(pid); in DoKillProcessGroupOnce()
311 for (auto it = pids.begin(); it != pids.end();) { in DoKillProcessGroupOnce()
314 it = pids.erase(it); in DoKillProcessGroupOnce()
331 for (const auto pid : pids) { in DoKillProcessGroupOnce()
/system/memory/libmeminfo/tools/
Dprocrank.cpp165 static bool read_all_pids(std::vector<pid_t>* pids, std::function<bool(pid_t pid)> for_each_pid) { in read_all_pids() argument
166 pids->clear(); in read_all_pids()
175 pids->emplace_back(pid); in read_all_pids()
428 std::vector<pid_t> pids; in main() local
431 if (!read_all_pids(&pids, in main()
492 if (!read_all_pids(&pids, mark_swap_usage)) { in main()
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabufinfo.h59 const std::set<pid_t>& pids() const { return pids_; } in pids() function
/system/extras/ioblame/
DREADME4 files that running pids are doing IO to (with the aggregate amount of
18 1) File view : For each file, it gives a list of pids that are doing
20 the aggregate amount of IO done to the file by all pids).
89 Finally, it reports the total amount of file data IO done by pids and
/system/libhidl/transport/
DServiceManagement.cpp304 std::map<std::string, std::set<pid_t>> pids; in fetchPidsForPassthroughLibraries() local
328 pids[libFileName].insert(pid); in fetchPidsForPassthroughLibraries()
333 std::vector<pid_t>{pids[pair.first].begin(), pids[pair.first].end()}; in fetchPidsForPassthroughLibraries()
/system/iorap/src/maintenance/
Dcontroller.cc93 std::vector<int32_t> pids; member
103 pids.push_back(perfetto_trace.pid); in CompilerForkParameters()
114 common::AppendArgsRepeatedly(argv, "--pid", params.pids); in MakeCompilerParams()
/system/libhidl/transport/manager/1.0/
DIServiceManager.hal132 * Special values for InstanceDebugInfo pids.

12