Searched defs:pids (Results 1 - 11 of 11) sorted by relevance

/system/core/libmemtrack/
H A Dmemtrack_test.c78 pid_t *pids; local
92 ret = pm_kernel_pids(ker, &pids, &num_procs);
105 pid_t pid = pids[i];
/system/extras/libpagemap/
H A Dpm_kernel.c65 pid_t pid, *pids, *new_pids; local
73 pids = malloc(INIT_PIDS * sizeof(pid_t));
74 if (!pids) {
85 new_pids = realloc(pids, 2 * pids_size * sizeof(pid_t));
88 free(pids);
92 pids = new_pids;
96 pids[pids_count] = pid;
103 new_pids = realloc(pids, pids_count * sizeof(pid_t));
106 free(pids);
/system/extras/memtrack/
H A Dmemtrack.h61 std::vector<int> pids; member in struct:__anon1736
68 std::vector<int> pids; member in struct:__anon1737
/system/core/libprocessgroup/
H A Dprocessgroup.cpp77 // Returns 0 if there are no pids left in the process cgroup
259 // We separate all of the pids in the cgroup into those pids that are also the leaders of
260 // process groups (stored in the pgids set) and those that are not (stored in the pids set).
263 std::set<pid_t> pids; local
281 pids.emplace(pid);
285 // Erase all pids that will be killed when we kill the process groups.
286 for (auto it = pids.begin(); it != pids.end();) {
289 it = pids
[all...]
/system/extras/ksmutils/
H A Dksminfo.c72 pid_t *pids; local
119 error = pm_kernel_pids(ker, &pids, &num_procs);
130 pids = malloc(sizeof(*pids));
131 if (pids == NULL) {
136 *pids = strtoul(argv[optind], NULL, 10);
137 if (*pids == 0) {
143 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) {
146 printf("%s (%u):\n", cmdline, *pids);
153 error = pm_process_create(ker, pids[
[all...]
/system/extras/librank/
H A Dlibrank.c207 pid_t *pids; local
328 error = pm_kernel_pids(ker, &pids, &num_procs);
335 error = pm_process_create(ker, pids[i], &proc);
337 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]);
341 pi = get_process(pids[i]);
/system/extras/simpleperf/
H A Dcmd_stat.cpp544 std::set<pid_t> pids; local
545 if (!GetValidThreadsFromThreadString(args[i], &pids)) {
548 event_selection_set_.AddMonitoredProcesses(pids);
H A Dcmd_record.cpp558 std::set<pid_t> pids; local
559 if (!GetValidThreadsFromThreadString(args[i], &pids)) {
562 event_selection_set_.AddMonitoredProcesses(pids);
H A Denvironment.cpp528 std::vector<pid_t> pids = GetAllProcesses(); local
529 for (pid_t pid : pids) {
/system/extras/procrank/
H A Dprocrank.cpp188 pid_t *pids; local
249 error = pm_kernel_pids(ker, &pids, &num_procs);
257 procs[i].pid = pids[i];
258 procs[i].oomadj = getoomadj(pids[i]);
261 error = pm_process_create(ker, pids[i], &proc);
263 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]);
281 fprintf(stderr, "warning: could not read usage for %d\n", pids[i]);
291 free(pids);
/system/libhidl/transport/
H A DServiceManagement.cpp223 std::map<std::string, std::set<pid_t>> pids; local
247 pids[libFileName].insert(pid);
252 std::vector<pid_t>{pids[pair.first].begin(), pids[pair.first].end()};

Completed in 156 milliseconds