Home
last modified time | relevance | path

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

/system/extras/libpagemap/
Dpm_kernel.c65 pid_t pid, *pids, *new_pids; in pm_kernel_pids() local
73 pids = malloc(INIT_PIDS * sizeof(pid_t)); in pm_kernel_pids()
74 if (!pids) { in pm_kernel_pids()
85 new_pids = realloc(pids, 2 * pids_size * sizeof(pid_t)); in pm_kernel_pids()
88 free(pids); in pm_kernel_pids()
92 pids = new_pids; in pm_kernel_pids()
96 pids[pids_count] = pid; in pm_kernel_pids()
103 new_pids = realloc(pids, pids_count * sizeof(pid_t)); in pm_kernel_pids()
106 free(pids); in pm_kernel_pids()
/system/extras/ksmutils/
Dksminfo.c72 pid_t *pids; in main() local
119 error = pm_kernel_pids(ker, &pids, &num_procs); in main()
130 pids = malloc(sizeof(*pids)); in main()
131 if (pids == NULL) { in main()
136 *pids = strtoul(argv[optind], NULL, 10); in main()
137 if (*pids == 0) { in main()
143 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) { in main()
146 printf("%s (%u):\n", cmdline, *pids); in main()
153 error = pm_process_create(ker, pids[i], &proc); in main()
155 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main()
[all …]
/system/vold/
DProcess.cpp76 std::unordered_set<pid_t> pids; in KillProcessesWithOpenFiles() local
112 pids.insert(pid); in KillProcessesWithOpenFiles()
116 for (const auto& pid : pids) { in KillProcessesWithOpenFiles()
121 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/libmemtrack/
Dmemtrack_test.c78 pid_t *pids; in main() local
92 ret = pm_kernel_pids(ker, &pids, &num_procs); in main()
105 pid_t pid = pids[i]; in main()
/system/core/libprocessgroup/
Dprocessgroup.cpp174 std::set<pid_t> pids; in DoKillProcessGroupOnce() local
191 pids.emplace(pid); in DoKillProcessGroupOnce()
196 for (auto it = pids.begin(); it != pids.end();) { in DoKillProcessGroupOnce()
199 it = pids.erase(it); in DoKillProcessGroupOnce()
216 for (const auto pid : pids) { in DoKillProcessGroupOnce()
/system/core/init/
Dsubcontext_test.cpp72 auto pids = Split(result.error_string(), " "); in TEST() local
73 ASSERT_EQ(2U, pids.size()); in TEST()
75 EXPECT_NE(our_pid, pids[0]); in TEST()
76 EXPECT_EQ(our_pid, pids[1]); in TEST()
/system/extras/procrank/
Dprocrank.cpp187 pid_t *pids; in main() local
248 error = pm_kernel_pids(ker, &pids, &num_procs); in main()
256 procs[i].pid = pids[i]; in main()
257 procs[i].oomadj = getoomadj(pids[i]); in main()
260 error = pm_process_create(ker, pids[i], &proc); in main()
262 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main()
280 fprintf(stderr, "warning: could not read usage for %d\n", pids[i]); in main()
290 free(pids); in main()
/system/extras/librank/
Dlibrank.c206 pid_t *pids; in main() local
327 error = pm_kernel_pids(ker, &pids, &num_procs); in main()
334 error = pm_process_create(ker, pids[i], &proc); in main()
336 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main()
340 pi = get_process(pids[i]); in main()
/system/extras/simpleperf/
Dcmd_stat.cpp389 std::set<pid_t> pids = WaitForAppProcesses(app_package_name_); in Run() local
390 event_selection_set_.AddMonitoredProcesses(pids); in Run()
549 std::set<pid_t> pids; in ParseOptions() local
550 if (!GetValidThreadsFromThreadString(args[i], &pids)) { in ParseOptions()
553 event_selection_set_.AddMonitoredProcesses(pids); in ParseOptions()
Dcmd_record.cpp396 std::set<pid_t> pids = WaitForAppProcesses(app_package_name_); in PrepareRecording() local
397 event_selection_set_.AddMonitoredProcesses(pids); in PrepareRecording()
706 std::set<pid_t> pids; in ParseOptions() local
707 if (!GetValidThreadsFromThreadString(args[i], &pids)) { in ParseOptions()
710 event_selection_set_.AddMonitoredProcesses(pids); in ParseOptions()
Denvironment.cpp516 std::vector<pid_t> pids = GetAllProcesses(); in WaitForAppProcesses() local
517 for (pid_t pid : pids) { in WaitForAppProcesses()
/system/libhidl/transport/
DServiceManagement.cpp252 std::map<std::string, std::set<pid_t>> pids; in fetchPidsForPassthroughLibraries() local
276 pids[libFileName].insert(pid); in fetchPidsForPassthroughLibraries()
281 std::vector<pid_t>{pids[pair.first].begin(), pids[pair.first].end()}; in fetchPidsForPassthroughLibraries()
/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/manager/1.0/
DIServiceManager.hal132 * Special values for InstanceDebugInfo pids.
/system/core/adb/
DSERVICES.TXT227 This is used to send the list of JDWP pids periodically to the client.
/system/extras/simpleperf/doc/
DREADME.md842 $ simpleperf report --pids 7394,7395