Home
last modified time | relevance | path

Searched refs:pids (Results 1 – 25 of 51) sorted by relevance

123

/third_party/ltp/testcases/network/nfs/nfs_stress/
Dnfs06.sh19 [ -n "$pids" ] && kill -9 $pids
28 local pids
31 pids="$pids $!"
35 tst_res TINFO "waiting for pids:$pids"
36 for p in $pids; do
40 pids=
/third_party/node/deps/npm/node_modules/worker-farm/tests/
Dindex.js76 , pids = []
81 pids.push(pid)
82 if (pids.length == 10) {
83 t.equal(1, uniq(pids).length, 'only a single process (by pid)')
84 } else if (pids.length > 10)
101 , pids = []
106 pids.push(pid)
107 if (pids.length == 10) {
108 t.equal(2, uniq(pids).length, 'only two child processes (by pid)')
109 } else if (pids.length > 10)
[all …]
/third_party/ltp/testcases/kernel/syscalls/sched_getparam/
Dsched_getparam01.c27 static pid_t pids[2] = {0, 0}; variable
39 TST_EXP_PASS_SILENT(tv->sched_getparam(pids[n], &param), in verify_sched_getparam()
40 "sched_getparam(%d)", pids[n]); in verify_sched_getparam()
51 pids[n], param.sched_priority); in verify_sched_getparam()
53 tst_res(TPASS, "sched_getparam(%d) got expected sched_priority 0", pids[n]); in verify_sched_getparam()
67 pids[1] = getpid(); in setup()
74 .tcnt = ARRAY_SIZE(pids),
/third_party/libwebsockets/lwsws/
Dmain.c64 static int pids[32]; variable
215 for (m = 0; m < (int)LWS_ARRAY_SIZE(pids); m++) in reload_handler()
216 if (pids[m]) in reload_handler()
217 kill(pids[m], SIGHUP); in reload_handler()
228 for (m = 0; m < (int)LWS_ARRAY_SIZE(pids); m++) in reload_handler()
229 if (pids[m]) in reload_handler()
230 kill(pids[m], SIGTERM); in reload_handler()
294 for (m = 0; m < (int)LWS_ARRAY_SIZE(pids); m++) in main()
295 if (!pids[m]) { in main()
296 pids[m] = n; in main()
[all …]
/third_party/ltp/runtest/
Dcontrollers361 pids_1_1 pids.sh 1 1 0
362 pids_1_2 pids.sh 1 2 0
363 pids_1_10 pids.sh 1 10 0
364 pids_1_50 pids.sh 1 50 0
365 pids_1_100 pids.sh 1 100 0
366 pids_2_1 pids.sh 2 1 0
367 pids_2_2 pids.sh 2 2 0
368 pids_2_10 pids.sh 2 10 0
369 pids_2_50 pids.sh 2 50 0
370 pids_2_100 pids.sh 2 100 0
[all …]
/third_party/ltp/testcases/kernel/controllers/pids/
Dpids.sh53 if ! grep -q pids "$mount_point"/cgroup.controllers; then
66 exist=`grep -w pids /proc/cgroups | cut -f1`;
71 mount_point=`grep -w pids /proc/mounts | cut -f 2 | cut -d " " -f2`
82 ROD mount -t cgroup -o pids none $mount_point
161 ROD echo $max \> $testpath/pids.max
184 ROD echo $lim \> $testpath/pids.max
205 ROD echo 0 \> $testpath/pids.max
217 echo -1 > $testpath/pids.max
232 ROD echo $lim \> $testpath/pids.max
258 ROD echo $max \> $testpath/pids.max
[all …]
/third_party/ltp/testcases/kernel/containers/pidns/
Dpidns05.c83 int find_cinit_pids(pid_t * pids) in find_cinit_pids() argument
99 pids[next] = i; in find_cinit_pids()
156 pid_t pids[MAX_DEPTH]; in kill_nested_containers() local
159 orig_count = find_cinit_pids(pids); in kill_nested_containers()
160 kill(pids[MAX_DEPTH - 3], SIGKILL); in kill_nested_containers()
171 if (pids[i] != pids_new[i]) in kill_nested_containers()
180 "the container %d", pids[MAX_DEPTH - 3]); in kill_nested_containers()
184 kill(pids[i], SIGKILL); in kill_nested_containers()
185 waitpid(pids[i], &status, 0); in kill_nested_containers()
/third_party/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_readv02.c40 static pid_t pids[2]; variable
62 pids[0] = fork(); in main()
63 switch (pids[0]) { in main()
71 pids[1] = fork(); in main()
72 switch (pids[1]) { in main()
81 SAFE_WAITPID(cleanup, pids[1], &status, 0); in main()
88 SAFE_WAITPID(cleanup, pids[0], &status, 0); in main()
137 TEST(ltp_syscall(__NR_process_vm_readv, pids[0], in child_invoke()
Dprocess_vm_writev02.c50 static pid_t pids[2]; variable
72 pids[0] = fork(); in main()
73 switch (pids[0]) { in main()
83 pids[1] = fork(); in main()
84 switch (pids[1]) { in main()
94 SAFE_WAITPID(cleanup, pids[1], &status, 0); in main()
101 SAFE_WAITPID(cleanup, pids[0], &status, 0); in main()
174 TEST(ltp_syscall(__NR_process_vm_writev, pids[0], &local, in child_write()
Dprocess_vm_readv03.c53 static pid_t pids[2]; variable
81 pids[0] = fork(); in main()
82 switch (pids[0]) { in main()
90 pids[1] = fork(); in main()
91 switch (pids[1]) { in main()
100 SAFE_WAITPID(cleanup, pids[1], &status, 0); in main()
107 SAFE_WAITPID(cleanup, pids[0], &status, 0); in main()
183 TEST(ltp_syscall(__NR_process_vm_readv, pids[0], &local, in fetch_remote_addrs()
216 TEST(ltp_syscall(__NR_process_vm_readv, pids[0], local, in child_invoke()
/third_party/node/test/fixtures/clustered-server/
Dapp.js22 const pids = [];
23 pids.push(process.pid);
25 pids.push(cluster.workers[key].process.pid);
26 process.send({ type: 'pids', pids: pids }); property
/third_party/ltp/testcases/network/nfs/nfslock01/
Dnfslock0143 local pids=$!
45 pids="$pids $!"
47 tst_res TINFO "waiting for pids: $pids"
48 for p in $pids; do
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_wake03.c68 pid_t pids[55]; in run() local
71 for (i = 0; i < ARRAY_SIZE(pids); i++) { in run()
72 pids[i] = SAFE_FORK(); in run()
73 if (!pids[i]) in run()
77 for (i = 0; i < ARRAY_SIZE(pids); i++) in run()
78 TST_PROCESS_STATE_WAIT(pids[i], 'S', 0); in run()
/third_party/toybox/toys/lsb/
Dkillall.c35 struct int_list { struct int_list *next; int val; } *pids;
52 struct int_list *new = xmalloc(sizeof(*TT.pids));
54 new->next = TT.pids;
55 TT.pids = new;
110 struct int_list *p = TT.pids; in killall_main()
120 llist_traverse(TT.pids, free); in killall_main()
/third_party/ltp/testcases/kernel/mem/cpuset/
Dcpuset01.c124 pid_t *pids; in mem_hog_cpuset() local
135 pids = SAFE_MALLOC(sizeof(pid_t) * ntasks); in mem_hog_cpuset()
137 switch (pids[i] = fork()) { in mem_hog_cpuset()
139 tst_res(TFAIL | TERRNO, "fork %d", pids[i]); in mem_hog_cpuset()
151 if (kill(pids[i], SIGUSR1) == -1) { in mem_hog_cpuset()
152 tst_res(TFAIL | TERRNO, "kill %d", pids[i]); in mem_hog_cpuset()
/third_party/ltp/testcases/kernel/controllers/memcg/stress/
Dmemcg_stress_test.sh70 local i pid pids
81 pids="$pids $!"
84 for pid in $pids; do
93 for pid in $pids; do
/third_party/mindspore/tests/ut/python/cachetests/
Dcachetest_py.sh155 pids+=("$!")
157 pids+=("$!")
280 pids+=("$!")
282 pids+=("$!")
284 pids+=("$!")
382 pids+=("$!")
384 pids+=("$!")
/third_party/node/test/parallel/
Dtest-dgram-exclusive-implicit-bind.js45 const pids = []; variable
55 if (pids.includes(buf.toString()))
57 pids.push(buf.toString());
/third_party/ltp/testcases/network/stress/multicast/grp-operation/
Dmcast-lib.sh120 local cnt define_src_addr filter params pid pids ret
143 pids="$! $pids"
147 for pid in $pids; do wait $pid; done
/third_party/ffmpeg/libavformat/
Dmpegts.c120 unsigned int pids[MAX_PIDS_PER_PROGRAM]; member
175 MpegTSFilter *pids[NB_PID_MAX]; member
338 if (p->pids[i] == pid) in add_pid_to_program()
341 p->pids[p->nb_pids++] = pid; in add_pid_to_program()
394 if (p->pids[j] != pid) in discard_pid()
489 if (pid >= NB_PID_MAX || ts->pids[pid]) in mpegts_open_filter()
494 ts->pids[pid] = filter; in mpegts_open_filter()
571 ts->pids[pid] = NULL; in mpegts_close_filter()
1308 MpegTSFilter *f = pes->ts->pids[p->pcr_pid]; in mpegts_push_data()
1698 if (!ts->pids[pid]) in m4sl_cb()
[all …]
/third_party/toybox/toys/pending/
Dtcpsvd.c71 struct list_pid *pids = NULL; variable
123 static char *delete(struct list_pid **pids, int pid) in delete() argument
125 struct list_pid *prev, *free_node, *head = *pids; in delete()
134 if (!prev) *pids = head->next; in delete()
176 char *ip = delete(&pids, pid_n); in handle_exit()
397 insert(&pids, pid, addr); in tcpsvd_main()
/third_party/ltp/testcases/network/stress/ssh/
Dssh-stress.sh29 local pids
134 local start_epoc pids total_connections elapse_epoc new_pids
158 ssh_num=$(echo "$pids" | wc -w)
/third_party/alsa-lib/src/control/
Dcontrol_shm.c158 size_t bytes = list->space * sizeof(*list->pids); in snd_ctl_shm_elem_list()
160 snd_ctl_elem_id_t *pids = list->pids; in snd_ctl_shm_elem_list() local
169 list->pids = pids; in snd_ctl_shm_elem_list()
170 bytes = list->used * sizeof(*list->pids); in snd_ctl_shm_elem_list()
171 memcpy(pids, (void *)ctrl->data, bytes); in snd_ctl_shm_elem_list()
Dcontrol.c414 assert(list->space == 0 || list->pids); in snd_ctl_elem_list()
1700 free(obj->pids); in snd_ctl_elem_list_alloc_space()
1701 obj->pids = calloc(entries, sizeof(*obj->pids)); in snd_ctl_elem_list_alloc_space()
1702 if (!obj->pids) { in snd_ctl_elem_list_alloc_space()
1720 free(obj->pids); in snd_ctl_elem_list_free_space()
1721 obj->pids = NULL; in snd_ctl_elem_list_free_space()
2435 *ptr = obj->pids[idx]; in snd_ctl_elem_list_get_id()
2448 return obj->pids[idx].numid; in snd_ctl_elem_list_get_numid()
2461 return obj->pids[idx].iface; in snd_ctl_elem_list_get_interface()
2474 return obj->pids[idx].device; in snd_ctl_elem_list_get_device()
[all …]
/third_party/node/deps/npm/node_modules/is-regex/
D.npmignore10 pids

123