Home
last modified time | relevance | path

Searched refs:css (Results 1 – 18 of 18) sorted by relevance

/kernel/cgroup/
Ddebug.c17 struct cgroup_subsys_state *css = kzalloc(sizeof(*css), GFP_KERNEL); in debug_css_alloc() local
19 if (!css) in debug_css_alloc()
22 return css; in debug_css_alloc()
25 static void debug_css_free(struct cgroup_subsys_state *css) in debug_css_free() argument
27 kfree(css); in debug_css_free()
34 static u64 debug_taskcount_read(struct cgroup_subsys_state *css, in debug_taskcount_read() argument
37 return cgroup_task_count(css->cgroup); in debug_taskcount_read()
45 struct cgroup_subsys_state *css; in current_css_set_read() local
64 css = cset->subsys[ss->id]; in current_css_set_read()
65 if (!css) in current_css_set_read()
[all …]
Dlegacy_freezer.c44 struct cgroup_subsys_state css; member
50 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument
52 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer()
62 return css_freezer(freezer->css.parent); in parent_freezer()
94 return &freezer->css; in freezer_css_alloc()
105 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online() argument
107 struct freezer *freezer = css_freezer(css); in freezer_css_online()
130 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline() argument
132 struct freezer *freezer = css_freezer(css); in freezer_css_offline()
144 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free() argument
[all …]
Dpids.c41 struct cgroup_subsys_state css; member
57 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids() argument
59 return container_of(css, struct pids_cgroup, css); in css_pids()
64 return css_pids(pids->css.parent); in parent_pids()
79 return &pids->css; in pids_css_alloc()
82 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free() argument
84 kfree(css_pids(css)); in pids_css_free()
219 struct cgroup_subsys_state *css; in pids_can_fork() local
223 css = task_css_check(current, pids_cgrp_id, true); in pids_can_fork()
224 pids = css_pids(css); in pids_can_fork()
[all …]
Dcgroup.c224 static void kill_css(struct cgroup_subsys_state *css);
225 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
487 struct cgroup_subsys_state *css; in cgroup_tryget_css() local
490 css = cgroup_css(cgrp, ss); in cgroup_tryget_css()
491 if (css && !css_tryget_online(css)) in cgroup_tryget_css()
492 css = NULL; in cgroup_tryget_css()
495 return css; in cgroup_tryget_css()
545 struct cgroup_subsys_state *css; in cgroup_e_css() local
548 css = cgroup_css(cgrp, ss); in cgroup_e_css()
550 if (css) in cgroup_e_css()
[all …]
Dcpuset.c82 struct cgroup_subsys_state css; member
192 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
194 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
205 return css_cs(cs->css.parent); in parent_cs()
223 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
282 css_for_each_child((pos_css), &(parent_cs)->css) \
297 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
565 struct cgroup_subsys_state *css; in validate_change() local
573 cpuset_for_each_child(c, css, cur) in validate_change()
594 cpuset_for_each_child(c, css, par) { in validate_change()
[all …]
Drdma.c67 static struct rdma_cgroup *css_rdmacg(struct cgroup_subsys_state *css) in css_rdmacg() argument
69 return container_of(css, struct rdma_cgroup, css); in css_rdmacg()
74 return css_rdmacg(cg->css.parent); in parent_rdmacg()
219 css_put(&cg->css); in rdmacg_uncharge_hierarchy()
572 return &cg->css; in rdmacg_css_alloc()
575 static void rdmacg_css_free(struct cgroup_subsys_state *css) in rdmacg_css_free() argument
577 struct rdma_cgroup *cg = css_rdmacg(css); in rdmacg_css_free()
591 static void rdmacg_css_offline(struct cgroup_subsys_state *css) in rdmacg_css_offline() argument
593 struct rdma_cgroup *cg = css_rdmacg(css); in rdmacg_css_offline()
Dcgroup-v1.c580 static u64 cgroup_read_notify_on_release(struct cgroup_subsys_state *css, in cgroup_read_notify_on_release() argument
583 return notify_on_release(css->cgroup); in cgroup_read_notify_on_release()
586 static int cgroup_write_notify_on_release(struct cgroup_subsys_state *css, in cgroup_write_notify_on_release() argument
590 set_bit(CGRP_NOTIFY_ON_RELEASE, &css->cgroup->flags); in cgroup_write_notify_on_release()
592 clear_bit(CGRP_NOTIFY_ON_RELEASE, &css->cgroup->flags); in cgroup_write_notify_on_release()
596 static u64 cgroup_clone_children_read(struct cgroup_subsys_state *css, in cgroup_clone_children_read() argument
599 return test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags); in cgroup_clone_children_read()
602 static int cgroup_clone_children_write(struct cgroup_subsys_state *css, in cgroup_clone_children_write() argument
606 set_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags); in cgroup_clone_children_write()
608 clear_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags); in cgroup_clone_children_write()
Drstat.c166 struct cgroup_subsys_state *css; in cgroup_rstat_flush_locked() local
171 list_for_each_entry_rcu(css, &pos->rstat_css_list, in cgroup_rstat_flush_locked()
173 css->ss->css_rstat_flush(css, cpu); in cgroup_rstat_flush_locked()
Dfreezer.c262 struct cgroup_subsys_state *css; in cgroup_freeze() local
279 css_for_each_descendant_pre(css, &cgrp->self) { in cgroup_freeze()
280 dsct = css->cgroup; in cgroup_freeze()
/kernel/sched/
Dcpuacct.c29 struct cgroup_subsys_state css; member
35 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument
37 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca()
48 return css_ca(ca->css.parent); in parent_ca()
64 return &root_cpuacct.css; in cpuacct_css_alloc()
78 return &ca->css; in cpuacct_css_alloc()
89 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument
91 struct cpuacct *ca = css_ca(css); in cpuacct_css_free()
155 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument
158 struct cpuacct *ca = css_ca(css); in __cpuusage_read()
[all …]
Dcore.c1079 uclamp_update_active_tasks(struct cgroup_subsys_state *css, in uclamp_update_active_tasks() argument
1086 css_task_iter_start(css, 0, &it); in uclamp_update_active_tasks()
1096 static void cpu_util_update_eff(struct cgroup_subsys_state *css);
1107 cpu_util_update_eff(&root_task_group.css); in uclamp_update_root_tg()
7017 struct task_group, css); in sched_change_group()
7064 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() argument
7066 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
7077 return &root_task_group.css; in cpu_cgroup_css_alloc()
7084 return &tg->css; in cpu_cgroup_css_alloc()
7088 static int cpu_cgroup_css_online(struct cgroup_subsys_state *css) in cpu_cgroup_css_online() argument
[all …]
Dsched.h356 struct cgroup_subsys_state css; member
2376 struct cgroup_subsys_state *css = task_css(p, cpu_cgrp_id); in uclamp_latency_sensitive() local
2379 if (!css) in uclamp_latency_sensitive()
2381 tg = container_of(css, struct task_group, css); in uclamp_latency_sensitive()
Ddebug.c427 cgroup_path(tg->css.cgroup, group_path, PATH_MAX); in task_group_path()
Dfair.c285 else if (cfs_rq && cfs_rq->tg->css.cgroup) in cfs_rq_tg_path()
286 cgroup_path(cfs_rq->tg->css.cgroup, path, len); in cfs_rq_tg_path()
/kernel/bpf/
Dcgroup.c239 struct cgroup_subsys_state *css; in update_effective_progs() local
243 css_for_each_descendant_pre(css, &cgrp->self) { in update_effective_progs()
244 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
255 css_for_each_descendant_pre(css, &cgrp->self) { in update_effective_progs()
256 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
276 css_for_each_descendant_pre(css, &cgrp->self) { in update_effective_progs()
277 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
/kernel/
Dkthread.c1204 void kthread_associate_blkcg(struct cgroup_subsys_state *css) in kthread_associate_blkcg() argument
1218 if (css) { in kthread_associate_blkcg()
1219 css_get(css); in kthread_associate_blkcg()
1220 kthread->blkcg_css = css; in kthread_associate_blkcg()
/kernel/events/
Dcore.c690 return cgroup_is_descendant(cpuctx->cgrp->css.cgroup, in perf_cgroup_match()
691 event->cgrp->css.cgroup); in perf_cgroup_match()
696 css_put(&event->cgrp->css); in perf_detach_cgroup()
729 struct cgroup_subsys_state *css; in update_cgrp_time_from_cpuctx() local
732 for (css = &cgrp->css; css; css = css->parent) { in update_cgrp_time_from_cpuctx()
733 cgrp = container_of(css, struct perf_cgroup, css); in update_cgrp_time_from_cpuctx()
754 if (cgroup_is_descendant(cgrp->css.cgroup, event->cgrp->css.cgroup)) in update_cgrp_time_from_event()
764 struct cgroup_subsys_state *css; in perf_cgroup_set_timestamp() local
776 for (css = &cgrp->css; css; css = css->parent) { in perf_cgroup_set_timestamp()
777 cgrp = container_of(css, struct perf_cgroup, css); in perf_cgroup_set_timestamp()
[all …]
/kernel/trace/
Dblktrace.c175 blkcg ? cgroup_get_kernfs_id(blkcg->css.cgroup) : NULL); in __trace_note_message()
764 return cgroup_get_kernfs_id(bio_blkcg(bio)->css.cgroup); in blk_trace_bio_get_cgid()