/kernel/cgroup/ |
D | cgroup-internal.h | 97 struct cgroup *cgrp; 185 static inline bool cgroup_is_dead(const struct cgroup *cgrp) in cgroup_is_dead() 190 static inline bool notify_on_release(const struct cgroup *cgrp) in notify_on_release() 223 bool cgroup_on_dfl(const struct cgroup *cgrp); 224 bool cgroup_is_thread_root(struct cgroup *cgrp); 225 bool cgroup_is_threaded(struct cgroup *cgrp); 228 struct cgroup *task_cgroup_from_root(struct task_struct *task, 230 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline); 232 int cgroup_path_ns_locked(struct cgroup *cgrp, char *buf, size_t buflen, 241 int cgroup_migrate_vet_dst(struct cgroup *dst_cgrp); [all …]
|
D | rstat.c | 9 static void cgroup_base_stat_flush(struct cgroup *cgrp, int cpu); 11 static struct cgroup_rstat_cpu *cgroup_rstat_cpu(struct cgroup *cgrp, int cpu) in cgroup_rstat_cpu() 25 void cgroup_rstat_updated(struct cgroup *cgrp, int cpu) in cgroup_rstat_updated() 46 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_rstat_updated() 87 static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, in cgroup_rstat_cpu_pop_updated() 88 struct cgroup *root, int cpu) in cgroup_rstat_cpu_pop_updated() 119 struct cgroup *parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated() 123 struct cgroup **nextp; in cgroup_rstat_cpu_pop_updated() 148 static void cgroup_rstat_flush_locked(struct cgroup *cgrp, bool may_sleep) in cgroup_rstat_flush_locked() 158 struct cgroup *pos = NULL; in cgroup_rstat_flush_locked() [all …]
|
D | cgroup.c | 240 static int cgroup_apply_control(struct cgroup *cgrp); 241 static void cgroup_finalize_control(struct cgroup *cgrp, int ret); 244 static int cgroup_destroy_locked(struct cgroup *cgrp); 245 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp, 250 struct cgroup *cgrp, struct cftype cfts[], 316 bool cgroup_on_dfl(const struct cgroup *cgrp) in cgroup_on_dfl() 352 static bool cgroup_has_tasks(struct cgroup *cgrp) in cgroup_has_tasks() 357 bool cgroup_is_threaded(struct cgroup *cgrp) in cgroup_is_threaded() 363 static bool cgroup_is_mixable(struct cgroup *cgrp) in cgroup_is_mixable() 374 static bool cgroup_can_be_thread_root(struct cgroup *cgrp) in cgroup_can_be_thread_root() [all …]
|
D | freezer.c | 15 static void cgroup_propagate_frozen(struct cgroup *cgrp, bool frozen) in cgroup_propagate_frozen() 53 void cgroup_update_frozen(struct cgroup *cgrp) in cgroup_update_frozen() 90 static void cgroup_inc_frozen_cnt(struct cgroup *cgrp) in cgroup_inc_frozen_cnt() 98 static void cgroup_dec_frozen_cnt(struct cgroup *cgrp) in cgroup_dec_frozen_cnt() 110 struct cgroup *cgrp; in cgroup_enter_frozen() 134 struct cgroup *cgrp; in cgroup_leave_frozen() 182 static void cgroup_do_freeze(struct cgroup *cgrp, bool freeze) in cgroup_do_freeze() 228 struct cgroup *src, struct cgroup *dst) in cgroup_freezer_migrate_task() 265 void cgroup_freeze(struct cgroup *cgrp, bool freeze) in cgroup_freeze() 268 struct cgroup *dsct; in cgroup_freeze() [all …]
|
D | cgroup-v1.c | 66 struct cgroup *from_cgrp; in cgroup_attach_task_all() 100 int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from) in cgroup_transfer_tasks() 193 struct cgroup *owner; 202 void cgroup1_pidlist_destroy_all(struct cgroup *cgrp) in cgroup1_pidlist_destroy_all() 283 static struct cgroup_pidlist *cgroup_pidlist_find(struct cgroup *cgrp, in cgroup_pidlist_find() 304 static struct cgroup_pidlist *cgroup_pidlist_find_create(struct cgroup *cgrp, in cgroup_pidlist_find_create() 332 static int pidlist_array_load(struct cgroup *cgrp, enum cgroup_filetype type, in pidlist_array_load() 403 struct cgroup *cgrp = seq_css(s)->cgroup; in cgroup_pidlist_start() 463 mutex_unlock(&seq_css(s)->cgroup->pidlist_mutex); in cgroup_pidlist_stop() 498 struct cgroup *cgrp; in __cgroup1_procs_write() [all …]
|
D | debug.c | 37 return cgroup_task_count(css->cgroup); in debug_taskcount_read() 101 struct cgroup *c = link->cgrp; in current_css_set_cg_links_read() 122 list_for_each_entry(link, &css->cgroup->cset_links, cset_link) { in cgroup_css_links_read() 206 struct cgroup *cgrp; in cgroup_subsys_states_read() 258 struct cgroup *cgrp; in cgroup_masks_read() 273 return (!cgroup_is_populated(css->cgroup) && in releasable_read() 274 !css_has_online_children(&css->cgroup->self)); in releasable_read()
|
D | misc.c | 51 static struct misc_cg *parent_misc(struct misc_cg *cgroup) in parent_misc() argument 53 return cgroup ? css_misc(cgroup->css.parent) : NULL; in parent_misc() 163 pr_cont_cgroup_path(i->css.cgroup); in misc_cg_try_charge()
|
D | Makefile | 2 obj-y := cgroup.o rstat.o namespace.o cgroup-v1.o freezer.o
|
D | cpuset.c | 678 if ((cgroup_is_populated(cur->css.cgroup) || cur->attach_in_progress)) { in validate_change() 2942 if (!test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags)) in cpuset_css_online() 3126 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset() 3128 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset() 3771 struct cgroup *cgrp; in cpuset_print_current_mems_allowed() 3775 cgrp = task_cs(current)->css.cgroup; in cpuset_print_current_mems_allowed() 3840 retval = cgroup_path_ns(css->cgroup, buf, PATH_MAX, in proc_cpuset_show()
|
D | pids.c | 234 pr_cont_cgroup_path(css->cgroup); in pids_can_fork()
|
/kernel/bpf/ |
D | cgroup.c | 25 void cgroup_bpf_offline(struct cgroup *cgrp) in cgroup_bpf_offline() 43 struct cgroup *cgrp) in bpf_cgroup_storages_alloc() 83 struct cgroup *cgrp, in bpf_cgroup_storages_link() 99 cgroup_put(link->cgroup); in bpf_cgroup_link_auto_detach() 100 link->cgroup = NULL; in bpf_cgroup_link_auto_detach() 110 struct cgroup *p, *cgrp = container_of(work, struct cgroup, in cgroup_bpf_release() 160 struct cgroup *cgrp = container_of(ref, struct cgroup, bpf.refcnt); in cgroup_bpf_release_fn() 198 static bool hierarchy_allows_attach(struct cgroup *cgrp, in hierarchy_allows_attach() 201 struct cgroup *p; in hierarchy_allows_attach() 227 static int compute_effective_progs(struct cgroup *cgrp, in compute_effective_progs() [all …]
|
D | local_storage.c | 569 struct cgroup *cgroup, in bpf_cgroup_storage_link() argument 578 storage->key.cgroup_inode_id = cgroup_id(cgroup); in bpf_cgroup_storage_link() 585 list_add(&storage->list_cg, &cgroup->bpf.storages); in bpf_cgroup_storage_link()
|
D | Makefile | 27 obj-$(CONFIG_CGROUP_BPF) += cgroup.o
|
D | helpers.c | 366 struct cgroup *cgrp; in BPF_CALL_0() 385 struct cgroup *cgrp; in BPF_CALL_1() 386 struct cgroup *ancestor; in BPF_CALL_1()
|
/kernel/sched/ |
D | psi.c | 838 struct cgroup *cgroup = NULL; in iterate_groups() local 841 cgroup = task->cgroups->dfl_cgrp; in iterate_groups() 843 cgroup = cgroup_parent(*iter); in iterate_groups() 845 if (cgroup && cgroup_parent(cgroup)) { in iterate_groups() 846 *iter = cgroup; in iterate_groups() 847 return cgroup_psi(cgroup); in iterate_groups() 1027 int psi_cgroup_alloc(struct cgroup *cgroup) in psi_cgroup_alloc() argument 1032 cgroup->psi.pcpu = alloc_percpu(struct psi_group_cpu); in psi_cgroup_alloc() 1033 if (!cgroup->psi.pcpu) in psi_cgroup_alloc() 1035 group_init(&cgroup->psi); in psi_cgroup_alloc() [all …]
|
D | debug.c | 500 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
|
D | fair.c | 288 else if (cfs_rq && cfs_rq->tg->css.cgroup) in cfs_rq_tg_path() 289 cgroup_path(cfs_rq->tg->css.cgroup, path, len); in cfs_rq_tg_path()
|
/kernel/events/ |
D | core.c | 716 return cgroup_is_descendant(cpuctx->cgrp->css.cgroup, in perf_cgroup_match() 717 event->cgrp->css.cgroup); in perf_cgroup_match() 797 if (cgroup_is_descendant(cgrp->css.cgroup, event->cgrp->css.cgroup)) { in update_cgrp_time_from_event() 1044 if (cgroup_is_descendant(cgrp->css.cgroup, event->cgrp->css.cgroup)) in perf_cgroup_event_enable() 1670 static inline struct cgroup *event_cgroup(const struct perf_event *event) in event_cgroup() 1672 struct cgroup *cgroup = NULL; in event_cgroup() local 1676 cgroup = event->cgrp->css.cgroup; in event_cgroup() 1679 return cgroup; in event_cgroup() 1689 perf_event_groups_cmp(const int left_cpu, const struct cgroup *left_cgroup, in perf_event_groups_cmp() 1699 const struct cgroup *right_cgroup = event_cgroup(right); in perf_event_groups_cmp() [all …]
|
/kernel/ |
D | Makefile | 80 obj-$(CONFIG_CGROUPS) += cgroup/
|
D | fork.c | 2806 BUILD_BUG_ON(offsetofend(struct clone_args, cgroup) != in copy_clone_args_from_user() 2837 (args.cgroup > INT_MAX || usize < CLONE_ARGS_SIZE_VER2)) in copy_clone_args_from_user() 2850 .cgroup = args.cgroup, in copy_clone_args_from_user()
|
/kernel/trace/ |
D | blktrace.c | 177 blkcg ? cgroup_id(blkcg->css.cgroup) : 1); in __trace_note_message() 795 return cgroup_id(bio_blkcg(bio)->css.cgroup); in blk_trace_bio_get_cgid()
|
D | bpf_trace.c | 748 struct cgroup *cgrp; in BPF_CALL_2()
|