HomeSort by relevance Sort by last modified time
    Searched defs:pids (Results 1 - 25 of 244) sorted by null

1 2 3 4 5 6 7 8 910

  /frameworks/native/libs/dumputils/
dump_utils.cpp 81 std::set<int> pids; local
93 pids.insert(info.pid);
98 ALOGE("Could not get list of HAL PIDs: %s\n", ret.description().c_str());
101 return pids; // whether it was okay or not
  /external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/
multi_ebb_procs_test.c 79 pid_t pids[NR_CHILDREN]; local
89 pids[i] = fork();
90 if (pids[i] == 0)
100 kill(pids[i], SIGINT);
102 rc |= wait_for_child(pids[i]);
  /external/ltp/testcases/kernel/syscalls/futex/
futex_wake03.c 75 pid_t pids[55]; local
77 for (i = 0; i < (int)ARRAY_SIZE(pids); i++) {
78 pids[i] = tst_fork();
80 switch (pids[i]) {
90 for (i = 0; i < (int)ARRAY_SIZE(pids); i++)
91 tst_process_state_wait2(pids[i], 'S');
  /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);
  /external/ltp/testcases/kernel/syscalls/cma/
process_vm_readv02.c 40 static pid_t pids[2]; variable
62 pids[0] = fork();
63 switch (pids[0]) {
71 pids[1] = fork();
72 switch (pids[1]) {
81 SAFE_WAITPID(cleanup, pids[1], &status, 0);
88 SAFE_WAITPID(cleanup, pids[0], &status, 0);
137 TEST(test_process_vm_readv(pids[0], &local, 1, &remote, 1, 0));
process_vm_writev02.c 50 static pid_t pids[2]; variable
72 pids[0] = fork();
73 switch (pids[0]) {
83 pids[1] = fork();
84 switch (pids[1]) {
94 SAFE_WAITPID(cleanup, pids[1], &status, 0);
101 SAFE_WAITPID(cleanup, pids[0], &status, 0);
174 TEST(test_process_vm_writev(pids[0], &local, 1, &remote, 1, 0));
process_vm_readv03.c 53 static pid_t pids[2]; variable
81 pids[0] = fork();
82 switch (pids[0]) {
90 pids[1] = fork();
91 switch (pids[1]) {
100 SAFE_WAITPID(cleanup, pids[1], &status, 0);
107 SAFE_WAITPID(cleanup, pids[0], &status, 0);
183 TEST(test_process_vm_readv(pids[0], &local, 1, &remote, 1, 0));
215 TEST(test_process_vm_readv(pids[0], local, NUM_LOCAL_VECS,
  /system/vold/
Process.cpp 76 std::unordered_set<pid_t> pids; local
86 // We only care about valid PIDs
112 pids.insert(pid);
116 for (const auto& pid : pids) {
121 return pids.size();
  /external/ltp/testcases/kernel/mem/cpuset/
cpuset01.c 126 pid_t *pids; local
137 pids = SAFE_MALLOC(sizeof(pid_t) * ntasks);
139 switch (pids[i] = fork()) {
141 tst_res(TFAIL | TERRNO, "fork %d", pids[i]);
153 if (kill(pids[i], SIGUSR1) == -1) {
154 tst_res(TFAIL | TERRNO, "kill %d", pids[i]);
  /system/core/libmemtrack/
memtrack_test.c 78 pid_t *pids; local
92 ret = pm_kernel_pids(ker, &pids, &num_procs);
105 pid_t pid = pids[i];
  /external/ltp/testcases/kernel/containers/pidns/
pidns05.c 81 * Returns - the number of pids matched.
83 int find_cinit_pids(pid_t * pids)
99 pids[next] = i;
156 pid_t pids[MAX_DEPTH]; local
159 orig_count = find_cinit_pids(pids);
160 kill(pids[MAX_DEPTH - 3], SIGKILL);
171 if (pids[i] != pids_new[i])
180 "the container %d", pids[MAX_DEPTH - 3]);
184 kill(pids[i], SIGKILL);
185 waitpid(pids[i], &status, 0)
    [all...]
  /external/perf_data_converter/src/
perf_data_converter_test.cc 250 // PIDs so the inner vector will have multiple entries.
259 // Samples were collected for 6 pids in this case, so the outer vector should
261 int pids = 6; local
262 EXPECT_EQ(pids, pps.size());
  /external/perfetto/include/perfetto/ftrace_reader/
ftrace_controller.h 85 std::vector<int32_t> pids; member in struct:perfetto::FtraceMetadata
  /external/perfetto/src/traced/probes/
probes_producer.cc 368 if (ps_source_ && !metadata.pids.empty()) {
374 const auto& pids = metadata.pids; local
376 task_runner_->PostTask([weak_ps_source, pids] {
378 weak_ps_source->OnPids(pids);
  /external/toybox/toys/pending/
tcpsvd.c 71 struct list_pid *pids = NULL; variable in typeref:struct:list_pid
123 static char *delete(struct list_pid **pids, int pid)
125 struct list_pid *prev, *free_node, *head = *pids;
134 if (!prev) *pids = head->next;
176 char *ip = delete(&pids, pid_n);
398 insert(&pids, pid, addr);
  /frameworks/base/services/core/java/com/android/server/am/
HealthStatsBatteryStatsWriter.java 54 SparseArray<? extends BatteryStats.Uid.Pid> pids; local
136 pids = uid.getPidStats();
137 N = pids.size();
140 writePid(writer, pids.valueAt(i));
141 uidWriter.addStats(UidHealthStats.STATS_PIDS, Integer.toString(pids.keyAt(i)), writer);
  /packages/apps/Camera2/src/com/android/camera/app/
MemoryQuery.java 93 int pids[] = new int[1]; local
94 pids[0] = appPID;
95 Debug.MemoryInfo[] memoryInfoArray = mActivityManager.getProcessMemoryInfo(pids);
  /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]);
  /system/core/libprocessgroup/
processgroup.cpp 170 // We separate all of the pids in the cgroup into those pids that are also the leaders of
171 // process groups (stored in the pgids set) and those that are not (stored in the pids set).
174 std::set<pid_t> pids; local
191 pids.emplace(pid);
195 // Erase all pids that will be killed when we kill the process groups.
196 for (auto it = pids.begin(); it != pids.end();) {
199 it = pids.erase(it);
215 // Kill remaining pids
    [all...]
  /system/extras/ksmutils/
ksminfo.c 72 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[i], &proc)
    [all...]
  /system/extras/librank/
librank.c 206 pid_t *pids; local
327 error = pm_kernel_pids(ker, &pids, &num_procs);
334 error = pm_process_create(ker, pids[i], &proc);
336 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]);
340 pi = get_process(pids[i]);
  /system/extras/memtrack/
memtrack.h 63 std::vector<int> pids; member in struct:__anon2993
70 std::vector<int> pids; member in struct:__anon2994
  /external/selinux/sandbox/
seunshare.c 559 int pids, max_pids; local
571 pids = 0;
580 if (pids == max_pids) {
581 pid_t *new_pid_table = realloc(pid_table, 2*pids*sizeof(pid_t));
590 pid_table[pids++] = pid;
595 for (i = 0; i < pids; i++) {
  /packages/services/Car/obd2-lib/src/com/android/car/obd2/
Obd2Connection.java 263 String[] pids = new String[] {"0100", "0120", "0140", "0160"}; local
265 for (String pid : pids) {
  /system/extras/simpleperf/
cmd_stat.cpp 389 std::set<pid_t> pids = WaitForAppProcesses(app_package_name_); local
390 event_selection_set_.AddMonitoredProcesses(pids);
549 std::set<pid_t> pids; local
550 if (!GetValidThreadsFromThreadString(args[i], &pids)) {
553 event_selection_set_.AddMonitoredProcesses(pids);

Completed in 896 milliseconds

1 2 3 4 5 6 7 8 910