/linux-6.12.1/kernel/cgroup/ |
D | pids.c | 73 static struct pids_cgroup *parent_pids(struct pids_cgroup *pids) in parent_pids() argument 75 return css_pids(pids->css.parent); in parent_pids() 81 struct pids_cgroup *pids; in pids_css_alloc() local 83 pids = kzalloc(sizeof(struct pids_cgroup), GFP_KERNEL); in pids_css_alloc() 84 if (!pids) in pids_css_alloc() 87 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc() 88 return &pids->css; in pids_css_alloc() 114 static void pids_cancel(struct pids_cgroup *pids, int num) in pids_cancel() argument 120 WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter)); in pids_cancel() 128 static void pids_uncharge(struct pids_cgroup *pids, int num) in pids_uncharge() argument [all …]
|
/linux-6.12.1/Documentation/admin-guide/cgroup-v1/ |
D | pids.rst | 19 In order to use the `pids` controller, set the maximum number of tasks in 20 pids.max (this is not available in the root cgroup for obvious reasons). The 21 number of processes currently in the cgroup is given by pids.current. 24 to have pids.current > pids.max. This can be done by either setting the limit to 25 be smaller than pids.current, or attaching enough processes to the cgroup such 26 that pids.current > pids.max. However, it is not possible to violate a cgroup 30 To set a cgroup to have no limit, set pids.max to "max". This is the default for 34 pids.current tracks all child cgroup hierarchies, so parent/pids.current is a 35 superset of parent/child/pids.current. 37 The pids.events file contains event counters: [all …]
|
/linux-6.12.1/tools/testing/selftests/arm64/fp/ |
D | za-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\ $!
|
D | ssve-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\ $!
|
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\ $!
|
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\ $!
|
/linux-6.12.1/tools/testing/selftests/sched_ext/ |
D | init_enable_count.c | 41 pid_t pids[num_pre_forks]; in run_test() local 52 pids[i] = fork(); in run_test() 53 SCX_FAIL_IF(pids[i] < 0, "Failed to fork child"); in run_test() 54 if (pids[i] == 0) { in run_test() 64 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test() 80 pids[i] = fork(); in run_test() 81 SCX_FAIL_IF(pids[i] < 0, "Failed to fork child"); in run_test() 83 if (pids[i] == 0) { in run_test() 101 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test() 110 pids[i] = fork(); in run_test() [all …]
|
D | select_cpu_dispatch.c | 31 pid_t pids[NUM_CHILDREN]; in run() local 38 pids[i] = fork(); in run() 39 if (pids[i] == 0) { in run() 46 SCX_EQ(waitpid(pids[i], &status, 0), pids[i]); in run()
|
D | select_cpu_dfl.c | 31 pid_t pids[NUM_CHILDREN]; in run() local 38 pids[i] = fork(); in run() 39 if (pids[i] == 0) { in run() 46 SCX_EQ(waitpid(pids[i], &status, 0), pids[i]); in run()
|
D | select_cpu_dfl_nodispatch.c | 31 pid_t pids[NUM_CHILDREN]; in run() local 38 pids[i] = fork(); in run() 39 if (pids[i] == 0) { in run() 46 SCX_EQ(waitpid(pids[i], &status, 0), pids[i]); in run()
|
/linux-6.12.1/tools/testing/selftests/cgroup/ |
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[i]); in test_cgkill_tree()
|
/linux-6.12.1/Documentation/userspace-api/media/dvb/ |
D | dmx-get-pes-pids.rst | 20 ``int ioctl(fd, DMX_GET_PES_PIDS, __u16 pids[5])`` 28 ``pids`` 41 pids[DMX_PES_AUDIO] 0 first audio PID 42 pids[DMX_PES_VIDEO] 1 first video PID 43 pids[DMX_PES_TELETEXT] 2 first teletext PID 44 pids[DMX_PES_SUBTITLE] 3 first subtitle PID 45 pids[DMX_PES_PCR] 4 first Program Clock Reference PID
|
/linux-6.12.1/tools/testing/selftests/perf_events/ |
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()
|
/linux-6.12.1/tools/testing/selftests/powerpc/pmu/ebb/ |
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()
|
/linux-6.12.1/drivers/usb/early/ |
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, &ehci_debug->pids); in dbgp_bulk_write() 296 u32 pids, addr, ctrl; in dbgp_bulk_read() local 304 pids = readl(&ehci_debug->pids); in dbgp_bulk_read() 305 pids = dbgp_pid_read_update(pids, USB_PID_IN); in dbgp_bulk_read() [all …]
|
/linux-6.12.1/tools/testing/selftests/mm/ |
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() 171 self->pids[i] = pid; 177 ASSERT_EQ(kill(self->pids[i], SIGTERM), 0);
|
/linux-6.12.1/drivers/media/firewire/ |
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()
|
/linux-6.12.1/tools/testing/selftests/livepatch/ |
D | test-syscall.sh | 23 pids[$i]="$!" 26 pid_list=$(echo ${pids[@]} | tr ' ' ',') 35 for pid in ${pids[@]}; do
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | unicast_extensions.sh | 122 ip netns pids $foo_ns | xargs -r kill -9 123 ip netns pids $bar_ns | xargs -r kill -9 147 ip netns pids $foo_ns | xargs -r kill -9 148 ip netns pids $bar_ns | xargs -r kill -9 149 ip netns pids $router_ns | xargs -r kill -9
|
/linux-6.12.1/scripts/ |
D | bootgraph.pl | 60 my %pids; 80 $pids{$func} = $1; 102 $pids{$func} = $pid; 178 my $pid = $pids{$key};
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | uprobe_multi_pid_filter.c | 8 __u32 pids[3]; variable 15 if (pid == pids[idx]) in update_pid()
|
/linux-6.12.1/mm/damon/ |
D | dbgfs.c | 404 static void dbgfs_put_pids(struct pid **pids, int nr_pids) in dbgfs_put_pids() argument 409 put_pid(pids[i]); in dbgfs_put_pids() 422 struct pid **pids; in str_to_pids() local 430 pids = kmalloc_array(nr_ints, sizeof(*pids), GFP_KERNEL); in str_to_pids() 431 if (!pids) in str_to_pids() 435 pids[*nr_pids] = find_get_pid(ints[*nr_pids]); in str_to_pids() 436 if (!pids[*nr_pids]) { in str_to_pids() 437 dbgfs_put_pids(pids, *nr_pids); in str_to_pids() 439 kfree(pids); in str_to_pids() 446 return pids; in str_to_pids() [all …]
|
/linux-6.12.1/tools/kvm/kvm_stat/ |
D | kvm_stat | 1145 pids = [] 1148 pids.append(int(line[0])) 1150 return pids 1266 pids = self.get_pid_from_gname(self._gname) 1267 if len(pids) == 1: 1268 self._refresh_header(pids[0]) 1269 self._update_pid(pids[0]) 1482 pids = [] 1484 pids = self.get_pid_from_gname(guest) 1489 if len(pids) == 0: [all …]
|
/linux-6.12.1/tools/testing/selftests/net/netfilter/ |
D | nft_tproxy_udp.sh | 34 ip netns pids "$ns1" | xargs kill 2>/dev/null 35 ip netns pids "$ns2" | xargs kill 2>/dev/null 36 ip netns pids "$ns3" | xargs kill 2>/dev/null 37 ip netns pids "$nsrouter" | xargs kill 2>/dev/null
|
D | nft_tproxy_tcp.sh | 34 ip netns pids "$ns1" | xargs kill 2>/dev/null 35 ip netns pids "$ns2" | xargs kill 2>/dev/null 36 ip netns pids "$ns3" | xargs kill 2>/dev/null 37 ip netns pids "$nsrouter" | xargs kill 2>/dev/null
|