Home
last modified time | relevance | path

Searched refs:cgroups (Results 1 – 25 of 61) sorted by relevance

123

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dcgroup_hierarchical_stats.c54 } cgroups[] = { variable
64 #define N_CGROUPS ARRAY_SIZE(cgroups)
133 fd = create_and_get_cgroup(cgroups[i].path); in setup_cgroups()
137 cgroups[i].fd = fd; in setup_cgroups()
138 cgroups[i].id = get_cgroup_id(cgroups[i].path); in setup_cgroups()
147 close(cgroups[i].fd); in cleanup_cgroups()
175 if (join_parent_cgroup(cgroups[i].path)) in attach_processes()
220 attach_counters[i] = get_attach_counter(cgroups[i].id, in check_attach_counters()
221 cgroups[i].name); in check_attach_counters()
288 err = setup_cgroup_iter(*skel, cgroups[i].fd, cgroups[i].name); in setup_progs()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dcgrp_ls_recursion.c29 bpf_cgrp_storage_delete(&map_a, task->cgroups->dfl_cgrp); in BPF_PROG()
30 bpf_cgrp_storage_delete(&map_b, task->cgroups->dfl_cgrp); in BPF_PROG()
40 ptr = bpf_cgrp_storage_get(&map_a, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
45 ptr = bpf_cgrp_storage_get(&map_b, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
60 ptr = bpf_cgrp_storage_get(&map_a, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
65 ptr = bpf_cgrp_storage_get(&map_b, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
A Dcgrp_ls_tp_btf.c43 ptr = bpf_cgrp_storage_get(&map_a, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
49 err = bpf_cgrp_storage_delete(&map_a, task->cgroups->dfl_cgrp); in BPF_PROG()
54 ptr = bpf_cgrp_storage_get(&map_a, task->cgroups->dfl_cgrp, 0, 0); in BPF_PROG()
59 ptr = bpf_cgrp_storage_get(&map_a, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
79 ptr = bpf_cgrp_storage_get(&map_a, task->cgroups->dfl_cgrp, 0, in BPF_PROG()
A Drcu_read_lock.c33 struct css_set *cgroups; in get_cgroup_id() local
41 cgroups = task->cgroups; in get_cgroup_id()
42 if (!cgroups) in get_cgroup_id()
44 cgroup_id = cgroups->dfl_cgrp->kn->id; in get_cgroup_id()
182 struct css_set *cgroups; in miss_lock() local
198 struct css_set *cgroups; in miss_unlock() local
A Dcgrp_ls_sleepable.c53 cgrp = task->cgroups->dfl_cgrp; in no_rcu_lock()
73 cgrp = task->cgroups->dfl_cgrp; in yes_rcu_lock()
/linux-6.3-rc2/tools/cgroup/
A Dmemcg_shrinker.py11 cgroups = {}
17 cgroups[ino] = path
20 return cgroups
44 cgroups = scan_cgroups("/sys/fs/cgroup/")
58 cg = cgroups[ino]
/linux-6.3-rc2/tools/perf/util/
A Dcgroup.c559 down_write(&env->cgroups.lock); in cgroup__findnew()
560 cgrp = __cgroup__findnew(&env->cgroups.tree, id, true, path); in cgroup__findnew()
561 up_write(&env->cgroups.lock); in cgroup__findnew()
569 down_read(&env->cgroups.lock); in cgroup__find()
570 cgrp = __cgroup__findnew(&env->cgroups.tree, id, false, NULL); in cgroup__find()
571 up_read(&env->cgroups.lock); in cgroup__find()
580 down_write(&env->cgroups.lock); in perf_env__purge_cgroups()
581 while (!RB_EMPTY_ROOT(&env->cgroups.tree)) { in perf_env__purge_cgroups()
582 node = rb_first(&env->cgroups.tree); in perf_env__purge_cgroups()
585 rb_erase(node, &env->cgroups.tree); in perf_env__purge_cgroups()
[all …]
A Dcgroup.h30 int evlist__expand_cgroup(struct evlist *evlist, const char *cgroups,
A Denv.h115 } cgroups; member
/linux-6.3-rc2/Documentation/admin-guide/cgroup-v1/
A Dcgroups.rst21 1.1 What are cgroups ?
22 1.2 Why are cgroups needed ?
23 1.3 How are cgroups implemented ?
26 1.6 How do I use cgroups ?
41 1.1 What are cgroups ?
85 1.2 Why are cgroups needed ?
107 cgroups.
152 proliferation of such cgroups.
172 1.3 How are cgroups implemented ?
311 1.6 How do I use cgroups ?
[all …]
A Dnet_cls.rst9 different priorities to packets from different cgroups.
13 Creating a net_cls cgroups instance creates a net_cls.classid file.
A Ddevices.rst43 Any task can move itself between cgroups. This clearly won't
60 device cgroups maintain hierarchy by making sure a cgroup never has more
121 not be possible once the device cgroups has children.
126 device cgroups is implemented internally using a behavior (ALLOW, DENY) and a
A Dfreezer-subsystem.rst9 whole. The cgroup freezer uses cgroups to describe the set of tasks to
57 tasks belonging to the cgroup and all its descendant cgroups. Each
73 to the cgroup or one of its descendant cgroups until the new task is
79 descendant cgroups.
A Dindex.rst10 cgroups
A Dmemory.rst279 The reclaim algorithm has not been modified for cgroups, except that
395 2. Prepare the cgroups (see :ref:`Why are cgroups needed?
396 <cgroups-why-needed>` for the background information)::
662 The hierarchy is created by creating the appropriate cgroups in the
724 reclaiming memory for balancing between memory cgroups
739 cgroups to allow fine-grained policy adjustments without having to
814 API (see cgroups.txt). It allows to register multiple memory and memsw
837 API (See cgroups.txt). It allows to register multiple OOM notification
991 .. [4] Emelianov, Pavel. RSS controller based on process cgroups (v2)
993 .. [5] Emelianov, Pavel. RSS controller based on process cgroups (v3)
[all …]
/linux-6.3-rc2/Documentation/admin-guide/
A Dcgroup-v2.rst388 both cgroups.
804 cgroups.
826 all cgroups.
852 all cgroups.
877 cgroups.
954 of any ancestor cgroups. If any of ancestor cgroups is frozen, the
1158 cgroups.
1275 cgroups.
1564 cgroups.
1619 cgroups.
[all …]
/linux-6.3-rc2/block/
A DKconfig.iosched38 (cgroups-v1) or io (cgroups-v2) controller.
A DKconfig95 cgroups and specifying per device IO rate policies.
104 effort limit to prioritize cgroups. Depending on the setting, the limit
105 can be used to protect cgroups in terms of bandwidth/iops and better
/linux-6.3-rc2/tools/perf/util/bpf_skel/
A Doff_cpu.bpf.c125 return BPF_CORE_READ(t, cgroups, dfl_cgrp, kn, id); in get_cgroup_id()
136 cgrp = BPF_CORE_READ(t, cgroups, subsys[perf_subsys_id], cgroup); in get_cgroup_id()
/linux-6.3-rc2/include/linux/
A Dpsi.h62 rcu_assign_pointer(p->cgroups, to); in cgroup_move_task()
/linux-6.3-rc2/Documentation/bpf/
A Dmap_cgrp_storage.rst9 storage for cgroups. It is only available with ``CONFIG_CGROUPS``.
56 ptr = bpf_cgrp_storage_get(&cgrp_storage, task->cgroups->dfl_cgrp, 0,
A Dmap_cgroup_storage.rst10 attach to cgroups; the programs are made available by the same Kconfig. The
16 cgroups on their own.
132 that uses the map. A program may be attached to multiple cgroups or have
/linux-6.3-rc2/Documentation/accounting/
A Dcgroupstats.rst11 and attributes specific to cgroups. It should be very easy to
/linux-6.3-rc2/Documentation/translations/zh_CN/accounting/
A Dpsi.rst151 对于CONFIG_CGROUP=y及挂载了cgroup2文件系统的系统,能够获取cgroups内任务的psi。
/linux-6.3-rc2/Documentation/translations/zh_CN/scheduler/
A Dsched-design-CFS.rst183 关于该文件系统的更多信息,参见Documentation/admin-guide/cgroup-v1/cgroups.rst

Completed in 31 milliseconds

123