Home
last modified time | relevance | path

Searched refs:pids (Results 1 - 25 of 143) sorted by relevance

123456

/kernel/linux/linux-5.10/kernel/cgroup/
H A Dpids.c13 * In order to use the `pids` controller, set the maximum number of tasks in
14 * pids.max (this is not available in the root cgroup for obvious reasons). The
15 * number of processes currently in the cgroup is given by pids.current.
17 * possible to have pids.current > pids.max. However, it is not possible to
21 * To set a cgroup to have no limit, set pids.max to "max". This is the default
25 * pids.current tracks all child cgroup hierarchies, so parent/pids.current is
26 * a superset of parent/child/pids.current.
51 /* Handle for "pids
63 parent_pids(struct pids_cgroup *pids) parent_pids() argument
71 struct pids_cgroup *pids; pids_css_alloc() local
96 pids_cancel(struct pids_cgroup *pids, int num) pids_cancel() argument
110 pids_uncharge(struct pids_cgroup *pids, int num) pids_uncharge() argument
127 pids_charge(struct pids_cgroup *pids, int num) pids_charge() argument
144 pids_try_charge(struct pids_cgroup *pids, int num) pids_try_charge() argument
177 struct pids_cgroup *pids = css_pids(dst_css); pids_can_attach() local
202 struct pids_cgroup *pids = css_pids(dst_css); pids_cancel_attach() local
221 struct pids_cgroup *pids; pids_can_fork() local
245 struct pids_cgroup *pids; pids_cancel_fork() local
257 struct pids_cgroup *pids = css_pids(task_css(task, pids_cgrp_id)); pids_release() local
266 struct pids_cgroup *pids = css_pids(css); pids_max_write() local
295 struct pids_cgroup *pids = css_pids(css); pids_max_show() local
309 struct pids_cgroup *pids = css_pids(css); pids_current_read() local
316 struct pids_cgroup *pids = css_pids(seq_css(sf)); pids_events_show() local
[all...]
/kernel/linux/linux-6.6/kernel/cgroup/
H A Dpids.c13 * In order to use the `pids` controller, set the maximum number of tasks in
14 * pids.max (this is not available in the root cgroup for obvious reasons). The
15 * number of processes currently in the cgroup is given by pids.current.
17 * possible to have pids.current > pids.max. However, it is not possible to
21 * To set a cgroup to have no limit, set pids.max to "max". This is the default
25 * pids.current tracks all child cgroup hierarchies, so parent/pids.current is
26 * a superset of parent/child/pids.current.
52 /* Handle for "pids
64 parent_pids(struct pids_cgroup *pids) parent_pids() argument
72 struct pids_cgroup *pids; pids_css_alloc() local
107 pids_cancel(struct pids_cgroup *pids, int num) pids_cancel() argument
121 pids_uncharge(struct pids_cgroup *pids, int num) pids_uncharge() argument
138 pids_charge(struct pids_cgroup *pids, int num) pids_charge() argument
158 pids_try_charge(struct pids_cgroup *pids, int num) pids_try_charge() argument
197 struct pids_cgroup *pids = css_pids(dst_css); pids_can_attach() local
222 struct pids_cgroup *pids = css_pids(dst_css); pids_cancel_attach() local
241 struct pids_cgroup *pids; pids_can_fork() local
265 struct pids_cgroup *pids; pids_cancel_fork() local
277 struct pids_cgroup *pids = css_pids(task_css(task, pids_cgrp_id)); pids_release() local
286 struct pids_cgroup *pids = css_pids(css); pids_max_write() local
315 struct pids_cgroup *pids = css_pids(css); pids_max_show() local
329 struct pids_cgroup *pids = css_pids(css); pids_current_read() local
337 struct pids_cgroup *pids = css_pids(css); pids_peak_read() local
344 struct pids_cgroup *pids = css_pids(seq_css(sf)); pids_events_show() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/fp/
H A Dfpsimd-stress10 pids=
17 if [ -n "$pids" ]; then
18 kill $pids
19 wait $pids
20 pids=
47 pids=$pids\ $!
54 kill -USR1 $pids
56 pids=$pids\
[all...]
H A Dsve-stress10 pids=
17 if [ -n "$pids" ]; then
18 kill $pids
19 wait $pids
20 pids=
46 pids=$pids\ $!
53 kill -USR1 $pids
55 pids=$pids\
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H A Dfpsimd-stress10 pids=
17 if [ -n "$pids" ]; then
18 kill $pids
19 wait $pids
20 pids=
47 pids=$pids\ $!
54 kill -USR1 $pids
56 pids=$pids\
[all...]
H A Dsve-stress10 pids=
17 if [ -n "$pids" ]; then
18 kill $pids
19 wait $pids
20 pids=
46 pids=$pids\ $!
53 kill -USR1 $pids
55 pids=$pids\
[all...]
/third_party/ltp/testcases/network/nfs/nfs_stress/
H A 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/ltp/testcases/kernel/syscalls/sched_getparam/
H A 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),
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
H A Ddiag.sh11 pids=()
19 for pid in ${pids[@]}; do
22 pids=()
28 for pid in ${pids[@]}; do
88 pids[0]=$!
93 pids[1]=$!
101 pids[0]=$!
104 pids[1]=$!
112 pids[$((I*2))]=$!
118 pids[
[all...]
/third_party/libwebsockets/lwsws/
H A 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[ in main()
[all...]
/third_party/node/test/fixtures/clustered-server/
H A Dapp.js22 const pids = [];
23 pids.push(process.pid);
25 pids.push(cluster.workers[key].process.pid);
26 process.send({ type: 'pids', pids: pids });
/third_party/ltp/testcases/network/nfs/nfslock01/
H A Dnfslock0143 local pids=$!
45 pids="$pids $!"
47 tst_res TINFO "waiting for pids: $pids"
48 for p in $pids; do
H A Dnfslock01.sh63 local pids=$!
65 pids="$pids $!"
67 tst_res TINFO "waiting for pids: $pids"
68 for p in $pids; do
/test/xts/hats/kernel/rtginterface/
H A Drtg_interface_test.cpp193 vector<int> pids = {}; in HWTEST_F() local
194 pids.push_back(pid); in HWTEST_F()
197 ret = AddThreadsToRtg(pids, grpId); in HWTEST_F()
214 vector<int> pids = {}; in HWTEST_F() local
215 pids.push_back(pid); in HWTEST_F()
218 ret = AddThreadsToRtg(pids, grpId); in HWTEST_F()
267 vector<int> pids = {}; in HWTEST_F() local
268 pids.push_back(pid); in HWTEST_F()
271 ret = AddThreadsToRtg(pids, grpId); in HWTEST_F()
317 vector<int> pids in HWTEST_F() local
351 vector<int> pids = {}; HWTEST_F() local
401 vector<int> pids = {}; HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_kill.c58 pid_t pids[100]; in test_cgkill_simple() local
71 pids[i] = cg_run_nowait(cgroup, child_fn, NULL); in test_cgkill_simple()
86 wait_for_pid(pids[i]); in test_cgkill_simple()
115 pid_t pids[5]; in test_cgkill_tree() local
164 pids[0] = cg_run_nowait(cgroup[2], child_fn, NULL); in test_cgkill_tree()
165 pids[1] = cg_run_nowait(cgroup[7], child_fn, NULL); in test_cgkill_tree()
166 pids[2] = cg_run_nowait(cgroup[9], child_fn, NULL); in test_cgkill_tree()
167 pids[3] = cg_run_nowait(cgroup[9], child_fn, NULL); in test_cgkill_tree()
168 pids[4] = cg_run_nowait(cgroup[9], child_fn, NULL); in test_cgkill_tree()
190 wait_for_pid(pids[ in test_cgkill_tree()
[all...]
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns05.c52 static int find_cinit_pids(pid_t *pids) in find_cinit_pids() argument
68 pids[next] = pid; in find_cinit_pids()
86 pid_t pids[MAX_DEPTH]; in run() local
97 TST_EXP_POSITIVE(find_cinit_pids(pids)); in run()
108 kill(pids[i], SIGKILL); in run()
109 waitpid(pids[i], &status, 0); in run()
/third_party/ltp/testcases/kernel/syscalls/futex/
H A 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()
/kernel/linux/linux-5.10/tools/perf/include/bpf/
H A Dpid_filter.h10 static int pid_filter__add(struct bpf_map *pids, pid_t pid) in pid_filter__add() argument
13 return bpf_map_update_elem(pids, &pid, &value, BPF_NOEXIST); in pid_filter__add()
16 static bool pid_filter__has(struct bpf_map *pids, pid_t pid) in pid_filter__has() argument
18 return bpf_map_lookup_elem(pids, &pid) != NULL; in pid_filter__has()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_ebb_procs_test.c77 pid_t pids[NR_CHILDREN]; in multi_ebb_procs() local
87 pids[i] = fork(); in multi_ebb_procs()
88 if (pids[i] == 0) in multi_ebb_procs()
98 kill(pids[i], SIGINT); in multi_ebb_procs()
100 rc |= wait_for_child(pids[i]); in multi_ebb_procs()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_ebb_procs_test.c77 pid_t pids[NR_CHILDREN]; in multi_ebb_procs() local
85 pids[i] = fork(); in multi_ebb_procs()
86 if (pids[i] == 0) in multi_ebb_procs()
96 kill(pids[i], SIGINT); in multi_ebb_procs()
98 rc |= wait_for_child(pids[i]); in multi_ebb_procs()
/kernel/linux/linux-6.6/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c200 pid_t pids[30]; in TEST_F() local
203 for (i = 0; i < sizeof(pids) / sizeof(pids[0]); i++) { in TEST_F()
204 pids[i] = fork(); in TEST_F()
205 if (pids[i] == 0) { in TEST_F()
217 for (i = 0; i < sizeof(pids) / sizeof(pids[0]); i++) { in TEST_F()
219 EXPECT_EQ(waitpid(pids[i], &tmp, WNOHANG), 0); in TEST_F()
220 EXPECT_EQ(kill(pids[i], SIGKILL), 0); in TEST_F()
/third_party/ltp/testcases/kernel/controllers/pids/
H A Dpids.sh6 # ./pids.sh caseno max
44 cgroup_require "pids"
45 cgroup_version=$(cgroup_get_version "pids")
46 testpath=$(cgroup_get_test_path "pids")
47 task_list=$(cgroup_get_task_list "pids")
110 ROD echo $max \> $testpath/pids.max
114 # should return 2 because the limit of pids is reached
133 ROD echo $lim \> $testpath/pids.max
154 ROD echo 0 \> $testpath/pids.max
166 echo -1 > $testpath/pids
[all...]
/kernel/linux/build/test/unittest/rtg/
H A Drtg_test.cpp444 vector<int> pids = {}; in HWTEST_F() local
445 pids.push_back(pid); in HWTEST_F()
448 ret = AddThreadsToRtg(pids, grpId, VIP); in HWTEST_F()
483 vector<int> pids = {}; in HWTEST_F() local
484 pids.push_back(pid); in HWTEST_F()
487 ret = AddThreadsToRtg(pids, grpId, VIP); in HWTEST_F()
523 vector<int> pids = {}; in HWTEST_F() local
524 pids.push_back(pid); in HWTEST_F()
527 ret = AddThreadsToRtg(pids, grpId, VIP); in HWTEST_F()
558 vector<int> pids in HWTEST_F() local
597 vector<int> pids = {}; HWTEST_F() local
[all...]
/third_party/ltp/testcases/kernel/controllers/memcg/stress/
H A Dmemcg_stress_test.sh66 local i pid pids
75 pids="$pids $!"
78 for pid in $pids; do
87 for pid in $pids; do
/third_party/ltp/testcases/kernel/mem/cpuset/
H A Dcpuset01.c115 pid_t *pids; in mem_hog_cpuset() local
126 pids = SAFE_MALLOC(sizeof(pid_t) * ntasks); in mem_hog_cpuset()
128 switch (pids[i] = fork()) { in mem_hog_cpuset()
130 tst_res(TFAIL | TERRNO, "fork %d", pids[i]); in mem_hog_cpuset()
142 if (kill(pids[i], SIGUSR1) == -1) { in mem_hog_cpuset()
143 tst_res(TFAIL | TERRNO, "kill %d", pids[i]); in mem_hog_cpuset()

Completed in 7 milliseconds

123456