/kernel/linux/linux-5.10/kernel/cgroup/ |
H A D | pids.c | 13 * 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 D | pids.c | 13 * 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 D | fpsimd-stress | 10 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 D | sve-stress | 10 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 D | fpsimd-stress | 10 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 D | sve-stress | 10 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-5.10/tools/testing/selftests/net/mptcp/ |
H A D | diag.sh | 11 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...] |
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
H A D | test_kill.c | 58 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...] |
/kernel/linux/linux-5.10/tools/perf/include/bpf/ |
H A D | pid_filter.h | 10 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 D | multi_ebb_procs_test.c | 77 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 D | multi_ebb_procs_test.c | 77 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 D | remove_on_exec.c | 200 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()
|
/kernel/linux/build/test/unittest/rtg/ |
H A D | rtg_test.cpp | 444 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...] |
/kernel/linux/linux-5.10/drivers/usb/early/ |
H A D | ehci-dbgp.c | 197 u32 pids, lpid; in dbgp_wait_until_done() local 203 pids = readl(&ehci_debug->pids); in dbgp_wait_until_done() 204 lpid = DBGP_PID_GET(pids); in dbgp_wait_until_done() 270 u32 pids, ctrl; in dbgp_bulk_write() local 277 pids = readl(&ehci_debug->pids); in dbgp_bulk_write() 278 pids = dbgp_pid_write_update(pids, USB_PID_OUT); in dbgp_bulk_write() 287 writel(pids, in dbgp_bulk_write() 296 u32 pids, addr, ctrl; dbgp_bulk_read() local 327 u32 pids, addr, ctrl; dbgp_control_msg() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/early/ |
H A D | ehci-dbgp.c | 197 u32 pids, lpid; in dbgp_wait_until_done() local 203 pids = readl(&ehci_debug->pids); in dbgp_wait_until_done() 204 lpid = DBGP_PID_GET(pids); in dbgp_wait_until_done() 270 u32 pids, ctrl; in dbgp_bulk_write() local 277 pids = readl(&ehci_debug->pids); in dbgp_bulk_write() 278 pids = dbgp_pid_write_update(pids, USB_PID_OUT); in dbgp_bulk_write() 287 writel(pids, in dbgp_bulk_write() 296 u32 pids, addr, ctrl; dbgp_bulk_read() local 327 u32 pids, addr, ctrl; dbgp_control_msg() local [all...] |
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | trace.c | 16 static RADIX_TREE(pids, GFP_ATOMIC); 66 p = radix_tree_lookup(&pids, pid); in f2fs_trace_pid() 70 radix_tree_delete(&pids, pid); in f2fs_trace_pid() 72 if (radix_tree_insert(&pids, pid, current)) { in f2fs_trace_pid() 142 radix_tree_for_each_slot(slot, &pids, &iter, first_index) { in gang_lookup_pids() 162 radix_tree_delete(&pids, pid[idx]); in f2fs_destroy_trace_ios()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | migration.c | 26 pid_t *pids; in FIXTURE() local 53 self->pids = malloc(self->nthreads * sizeof(*self->pids)); in FIXTURE_SETUP() 54 ASSERT_NE(self->pids, NULL); in FIXTURE_SETUP() 60 free(self->pids); in FIXTURE_TEARDOWN() 166 self->pids[i] = pid; 172 ASSERT_EQ(kill(self->pids[i], SIGTERM), 0);
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | unicast_extensions.sh | 129 ip netns pids $foo_ns | xargs -r kill -9 130 ip netns pids $bar_ns | xargs -r kill -9 154 ip netns pids $foo_ns | xargs -r kill -9 155 ip netns pids $bar_ns | xargs -r kill -9 156 ip netns pids $router_ns | xargs -r kill -9
|
/kernel/linux/linux-5.10/scripts/ |
H A D | bootgraph.pl | 60 my %pids; 80 $pids{$func} = $1; 102 $pids{$func} = $pid; 178 my $pid = $pids{$key};
|
/kernel/linux/linux-6.6/scripts/ |
H A D | bootgraph.pl | 60 my %pids; 80 $pids{$func} = $1; 102 $pids{$func} = $pid; 178 my $pid = $pids{$key};
|
/kernel/linux/linux-5.10/drivers/media/firewire/ |
H A D | firedtv-dvb.c | 53 u16 pids[16]; in fdtv_start_feed() local 96 collect_channels(fdtv, &pidc, pids); in fdtv_start_feed() 106 ret = avc_tuner_set_pids(fdtv, pidc, pids); in fdtv_start_feed() 124 u16 pids[16]; in fdtv_stop_feed() local 135 demux->pids[dvbdmxfeed->pes_type] |= 0x8000; in fdtv_stop_feed() 149 collect_channels(fdtv, &pidc, pids); in fdtv_stop_feed() 151 ret = avc_tuner_set_pids(fdtv, pidc, pids); in fdtv_stop_feed()
|
/kernel/linux/linux-6.6/drivers/media/firewire/ |
H A D | firedtv-dvb.c | 53 u16 pids[16]; in fdtv_start_feed() local 96 collect_channels(fdtv, &pidc, pids); in fdtv_start_feed() 106 ret = avc_tuner_set_pids(fdtv, pidc, pids); in fdtv_start_feed() 124 u16 pids[16]; in fdtv_stop_feed() local 135 demux->pids[dvbdmxfeed->pes_type] |= 0x8000; in fdtv_stop_feed() 149 collect_channels(fdtv, &pidc, pids); in fdtv_stop_feed() 151 ret = avc_tuner_set_pids(fdtv, pidc, pids); in fdtv_stop_feed()
|
/kernel/linux/linux-6.6/mm/damon/ |
H A D | dbgfs.c | 401 static void dbgfs_put_pids(struct pid **pids, int nr_pids) in dbgfs_put_pids() argument 406 put_pid(pids[i]); in dbgfs_put_pids() 419 struct pid **pids; in str_to_pids() local 427 pids = kmalloc_array(nr_ints, sizeof(*pids), GFP_KERNEL); in str_to_pids() 428 if (!pids) in str_to_pids() 432 pids[*nr_pids] = find_get_pid(ints[*nr_pids]); in str_to_pids() 433 if (!pids[*nr_pids]) { in str_to_pids() 434 dbgfs_put_pids(pids, *nr_pids); in str_to_pids() 436 kfree(pids); in str_to_pids() 458 dbgfs_set_targets(struct damon_ctx *ctx, ssize_t nr_targets, struct pid **pids) dbgfs_set_targets() argument [all...] |
/kernel/linux/linux-5.10/include/linux/sched/ |
H A D | signal.h | 153 struct pid *pids[PIDTYPE_MAX]; member 641 pid = task->signal->pids[type]; in task_pid_type() 647 return task->signal->pids[PIDTYPE_TGID]; in task_tgid() 657 return task->signal->pids[PIDTYPE_PGID]; in task_pgrp() 662 return task->signal->pids[PIDTYPE_SID]; in task_session()
|
/kernel/linux/linux-6.6/include/linux/sched/ |
H A D | signal.h | 163 struct pid *pids[PIDTYPE_MAX]; member 678 pid = task->signal->pids[type]; in task_pid_type() 684 return task->signal->pids[PIDTYPE_TGID]; in task_tgid() 694 return task->signal->pids[PIDTYPE_PGID]; in task_pgrp() 699 return task->signal->pids[PIDTYPE_SID]; in task_session()
|