Home
last modified time | relevance | path

Searched refs:pids (Results 1 – 12 of 12) 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/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.h61 std::vector<int> pids; member
68 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/extras/procrank/
Dprocrank.cpp188 pid_t *pids; in main() local
249 error = pm_kernel_pids(ker, &pids, &num_procs); in main()
257 procs[i].pid = pids[i]; in main()
258 procs[i].oomadj = getoomadj(pids[i]); in main()
261 error = pm_process_create(ker, pids[i], &proc); in main()
263 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main()
281 fprintf(stderr, "warning: could not read usage for %d\n", pids[i]); in main()
291 free(pids); in main()
/system/extras/librank/
Dlibrank.c207 pid_t *pids; in main() local
328 error = pm_kernel_pids(ker, &pids, &num_procs); in main()
335 error = pm_process_create(ker, pids[i], &proc); in main()
337 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main()
341 pi = get_process(pids[i]); in main()
/system/extras/simpleperf/
Dcmd_stat.cpp505 std::set<pid_t> pids; in ParseOptions() local
506 if (!GetValidThreadsFromThreadString(args[i], &pids)) { in ParseOptions()
509 event_selection_set_.AddMonitoredProcesses(pids); in ParseOptions()
Dcmd_record.cpp508 std::set<pid_t> pids; in ParseOptions() local
509 if (!GetValidThreadsFromThreadString(args[i], &pids)) { in ParseOptions()
512 event_selection_set_.AddMonitoredProcesses(pids); in ParseOptions()
DREADME.md326 $simpleperf report --pids 7394,7395
/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.