/system/extras/libpagemap/ |
pm_kernel.c | 65 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/ |
memtrack.h | 61 std::vector<int> pids; member in struct:__anon62816 68 std::vector<int> pids; member in struct:__anon62817
|
memtrack.cpp | 158 cur_[cmd_name_].pids.push_back(pid); 170 // Clear any current pids. 172 it->second.pids.clear(); 211 if (it->second.pids.size() > all_[it->first].max_num_pids) { 212 all_[it->first].max_num_pids = it->second.pids.size(); 215 all_[it->first].pids = it->second.pids; 252 if ((*it)->pids.size() > 0) { 253 ALOGI(" Currently running pids:"); 254 for (std::vector<int>::const_iterator pid_it = (*it)->pids.begin() [all...] |
/system/extras/ksmutils/ |
ksminfo.c | 71 pid_t *pids; local 118 error = pm_kernel_pids(ker, &pids, &num_procs); 129 pids = malloc(sizeof(*pids)); 130 if (pids == NULL) { 135 *pids = strtoul(argv[optind], NULL, 10); 136 if (*pids == 0) { 142 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) { 145 printf("%s (%u):\n", cmdline, *pids); 152 error = pm_process_create(ker, pids[i], &proc) [all...] |
/system/core/libmemtrack/ |
memtrack_test.c | 78 pid_t *pids; local 98 ret = pm_kernel_pids(ker, &pids, &num_procs); 111 pid_t pid = pids[i];
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
linuxthreads.cc | 349 pid_t pids[max_threads]; local 352 sig_pids = pids; 408 if (pids[i] == pid) { 422 pids[num_threads++] = pid; 481 ResumeAllProcessThreads(num_threads, pids); 489 pids, args->ap); 493 if (ResumeAllProcessThreads(num_threads, pids)) { 503 ResumeAllProcessThreads(num_threads, pids);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
linuxthreads.cc | 349 pid_t pids[max_threads]; local 352 sig_pids = pids; 408 if (pids[i] == pid) { 422 pids[num_threads++] = pid; 481 ResumeAllProcessThreads(num_threads, pids); 489 pids, args->ap); 493 if (ResumeAllProcessThreads(num_threads, pids)) { 503 ResumeAllProcessThreads(num_threads, pids);
|
/system/extras/procrank/ |
procrank.c | 122 pid_t *pids; local 172 error = pm_kernel_pids(ker, &pids, &num_procs); 190 procs[i]->pid = pids[i]; 192 error = pm_process_create(ker, pids[i], &proc); 194 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); 212 fprintf(stderr, "warning: could not read usage for %d\n", pids[i]); 222 free(pids);
|
/external/chromium_org/chrome/browser/ |
memory_details_android.cc | 45 // For each of the pids, collect memory information about that process 48 const std::set<ProcessId>& pids, ProcessData* out) { 49 for (std::set<ProcessId>::const_iterator i = pids.begin(); i != pids.end();
|
memory_details_linux.cc | 113 // For each of a list of pids, collect memory information about that process. 115 const std::vector<pid_t>& pids) { 117 for (std::vector<pid_t>::const_iterator iter = pids.begin(); 118 iter != pids.end();
|
/external/valgrind/main/callgrind/ |
callgrind_control.in | 29 @pids = (); 41 push(@pids, $pid); 69 print "If no pids/names are given, an action is applied to all currently\n"; 296 foreach $p (@pids) { 314 if (scalar @pids == 0) { 320 if (scalar @spids >0) { @pids = @spids; } 336 foreach $pid (@pids) {
|
/external/chromium_org/tools/android/memdump/ |
memdump.cc | 484 void KillAll(const std::vector<pid_t>& pids, int signal_number) { 485 for (std::vector<pid_t>::const_iterator it = pids.begin(); it != pids.end(); 507 std::vector<pid_t> pids; local 512 pids.push_back(pid); 515 std::vector<ProcessMemory> processes_memory(pids.size()); 533 base::Bind(&KillAll, pids, SIGCONT)); 534 KillAll(pids, SIGSTOP); 535 for (std::vector<pid_t>::const_iterator it = pids.begin(); it != pids.end() [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
VoldExploitTest.java | 95 Set<Integer> pids = getPids(); local 96 assertTrue(pids.size() > 1); // at least vold and netd should exist 108 for (int i : pids) { 116 for (int i : pids) { 218 * Extract all the PIDs listening for netlink messages.
|
/external/chromium/base/ |
linux_util.cc | 207 std::vector<pid_t> pids; local 215 pids.push_back(pid_ul); 220 i = pids.begin(); i != pids.end(); ++i) {
|
/external/chromium_org/base/ |
linux_util.cc | 207 std::vector<pid_t> pids; local 215 pids.push_back(pid_ul); 220 i = pids.begin(); i != pids.end(); ++i) {
|
/external/chromium_org/build/android/ |
bb_run_sharded_steps.py | 170 pids = cmd_helper.GetCmdOutput(['pgrep', '-f', server]) 171 pids = [pid.strip() for pid in pids.split('\n') if pid.strip()] 172 for pid in pids:
|
/frameworks/base/services/java/com/android/server/ |
Watchdog.java | 375 ArrayList<Integer> pids = new ArrayList<Integer>(); local 376 pids.add(Process.myPid()); 377 ActivityManagerService.dumpStackTraces(true, pids, null, null, 395 ArrayList<Integer> pids = new ArrayList<Integer>(); local 396 pids.add(Process.myPid()); 397 if (mPhonePid > 0) pids.add(mPhonePid); 401 !waitedHalf, pids, null, null, NATIVE_STACKS_OF_INTEREST);
|
/packages/experimental/procstatlog/ |
procstatlog.c | 219 static int bad[4096]; // Cache pids known not to match patterns 222 int pids[4096]; local 263 // Insertion sort -- pids mostly increase so this makes sense 276 if (pid_count >= sizeof(pids) / sizeof(pids[0])) { 279 pids[pid_count++] = pid; 288 assert(pids[i] > 0); 289 sprintf(filename, "/proc/%d/stat", pids[i]); 291 sprintf(filename, "/proc/%d/wchan", pids[i]);
|
/external/llvm/utils/Misc/ |
zkill | 224 pids = set() 227 pids.add(int(arg)) 234 if pids: 236 if p.pid in pids]
|
/external/chromium/chrome/browser/ |
memory_details_linux.cc | 146 // For each of a list of pids, collect memory information about that process 149 const std::vector<pid_t>& pids, ProcessData* out) { 151 i = pids.begin(); i != pids.end(); ++i) {
|
/external/chromium_org/tools/telemetry/telemetry/core/chrome/ |
android_browser_backend.py | 126 pids = self.adb.ExtractPid(self.package) 127 if (len(pids) > 0): 128 pid = pids[-1] 270 pids = self._adb.ExtractPid(self._backend_settings.package) 271 return len(pids) != 0
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
WeightWatcher.java | 67 int[] pids = mMemoryService.getTrackedProcesses(); 70 if (pids.length != N) initViews(); 73 if (indexOf(pids, pw.getPid()) < 0) {
|
/system/extras/librank/ |
librank.c | 207 pid_t *pids; local 326 error = pm_kernel_pids(ker, &pids, &num_procs); 333 error = pm_process_create(ker, pids[i], &proc); 335 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); 339 pi = get_process(pids[i]);
|
/external/chromium_org/build/android/pylib/ |
android_commands.py | 584 pids = self.ExtractPid(process) 585 if pids: 586 self.RunShellCommand('kill -9 ' + ' '.join(pids)) 587 return len(pids) [all...] |
forwarder.py | 320 pids = adb.ExtractPid('device_forwarder') 321 if pids:
|