Searched refs:pids (Results 1 – 9 of 9) sorted by relevance
/system/extras/libpagemap/ |
D | pm_kernel.c | 65 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/ |
D | ksminfo.c | 72 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/ |
D | memtrack.cpp | 158 cur_[cmd_name_].pids.push_back(pid); in getInformation() 172 it->second.pids.clear(); in scan() 211 if (it->second.pids.size() > all_[it->first].max_num_pids) { in scan() 212 all_[it->first].max_num_pids = it->second.pids.size(); in scan() 215 all_[it->first].pids = it->second.pids; in scan() 252 if ((*it)->pids.size() > 0) { in dumpToLog() 254 for (std::vector<int>::const_iterator pid_it = (*it)->pids.begin(); in dumpToLog() 255 pid_it != (*it)->pids.end(); ++pid_it) { in dumpToLog()
|
D | memtrack.h | 61 std::vector<int> pids; member 68 std::vector<int> pids; member
|
/system/extras/procrank/ |
D | procrank.c | 124 pid_t *pids; in main() local 174 error = pm_kernel_pids(ker, &pids, &num_procs); in main() 192 procs[i]->pid = pids[i]; in main() 194 error = pm_process_create(ker, pids[i], &proc); in main() 196 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main() 214 fprintf(stderr, "warning: could not read usage for %d\n", pids[i]); in main() 224 free(pids); in main()
|
/system/core/libmemtrack/ |
D | memtrack_test.c | 78 pid_t *pids; in main() local 98 ret = pm_kernel_pids(ker, &pids, &num_procs); in main() 111 pid_t pid = pids[i]; in main()
|
/system/extras/librank/ |
D | librank.c | 207 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/core/logd/ |
D | LogStatistics.cpp | 617 PidStatisticsCollection pids; in format() local 618 pids.clear(); in format() 635 for (q = pids.begin(); q != pids.end(); ++q) { in format() 637 pids.insert(q, p); in format() 645 if (q == pids.end()) { in format() 646 pids.push_back(p); in format() 657 PidStatisticsCollection::iterator pt = pids.begin(); in format() 660 (pt != pids.end()) && (line < num_spammers); in format() 661 ++line, pt = pids.erase(pt)) { in format() 705 pids.clear(); in format()
|
/system/core/adb/ |
D | SERVICES.TXT | 227 This is used to send the list of JDWP pids periodically to the client.
|