Home
last modified time | relevance | path

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

/kernel/cgroup/
Dlegacy_freezer.c45 struct cgroup_subsys_state css; member
51 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument
53 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer()
63 return css_freezer(freezer->css.parent); in parent_freezer()
101 return &freezer->css; in freezer_css_alloc()
112 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online() argument
114 struct freezer *freezer = css_freezer(css); in freezer_css_online()
139 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline() argument
141 struct freezer *freezer = css_freezer(css); in freezer_css_offline()
155 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free() argument
[all …]
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 …]
Dpids.c42 struct cgroup_subsys_state css; member
59 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids() argument
61 return container_of(css, struct pids_cgroup, css); in css_pids()
66 return css_pids(pids->css.parent); in parent_pids()
81 return &pids->css; in pids_css_alloc()
84 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free() argument
86 kfree(css_pids(css)); in pids_css_free()
240 struct cgroup_subsys_state *css; in pids_can_fork() local
245 css = cset->subsys[pids_cgrp_id]; in pids_can_fork()
247 css = task_css_check(current, pids_cgrp_id, true); in pids_can_fork()
[all …]
Dcgroup.c251 static void kill_css(struct cgroup_subsys_state *css);
252 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
506 struct cgroup_subsys_state *css; in cgroup_tryget_css() local
509 css = cgroup_css(cgrp, ss); in cgroup_tryget_css()
510 if (css && !css_tryget_online(css)) in cgroup_tryget_css()
511 css = NULL; in cgroup_tryget_css()
514 return css; in cgroup_tryget_css()
564 struct cgroup_subsys_state *css; in cgroup_e_css() local
570 css = cgroup_css(cgrp, ss); in cgroup_e_css()
572 if (css) in cgroup_e_css()
[all …]
Dcpuset.c117 struct cgroup_subsys_state css; member
244 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
246 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
257 return css_cs(cs->css.parent); in parent_cs()
289 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
376 css_for_each_child((pos_css), &(parent_cs)->css) \
391 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
496 struct cgroup_subsys_state *css; in partition_is_populated() local
499 if (cs->css.cgroup->nr_populated_csets) in partition_is_populated()
502 return cgroup_is_populated(cs->css.cgroup); in partition_is_populated()
[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()
Dmisc.c53 return cgroup ? css_misc(cgroup->css.parent) : NULL; in parent_misc()
404 return &cg->css; in misc_cg_alloc()
413 static void misc_cg_free(struct cgroup_subsys_state *css) in misc_cg_free() argument
415 kfree(css_misc(css)); in misc_cg_free()
Dcgroup-v1.c592 static u64 cgroup_read_notify_on_release(struct cgroup_subsys_state *css, in cgroup_read_notify_on_release() argument
595 return notify_on_release(css->cgroup); in cgroup_read_notify_on_release()
598 static int cgroup_write_notify_on_release(struct cgroup_subsys_state *css, in cgroup_write_notify_on_release() argument
602 set_bit(CGRP_NOTIFY_ON_RELEASE, &css->cgroup->flags); in cgroup_write_notify_on_release()
604 clear_bit(CGRP_NOTIFY_ON_RELEASE, &css->cgroup->flags); in cgroup_write_notify_on_release()
608 static u64 cgroup_clone_children_read(struct cgroup_subsys_state *css, in cgroup_clone_children_read() argument
611 return test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags); in cgroup_clone_children_read()
614 static int cgroup_clone_children_write(struct cgroup_subsys_state *css, in cgroup_clone_children_write() argument
618 set_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags); in cgroup_clone_children_write()
620 clear_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags); in cgroup_clone_children_write()
Dfreezer.c267 struct cgroup_subsys_state *css; in cgroup_freeze() local
284 css_for_each_descendant_pre(css, &cgrp->self) { in cgroup_freeze()
285 dsct = css->cgroup; in cgroup_freeze()
Drstat.c197 struct cgroup_subsys_state *css; in cgroup_rstat_flush_locked() local
203 list_for_each_entry_rcu(css, &pos->rstat_css_list, in cgroup_rstat_flush_locked()
205 css->ss->css_rstat_flush(css, cpu); in cgroup_rstat_flush_locked()
/kernel/sched/
Dcpuacct.c25 struct cgroup_subsys_state css; member
31 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument
33 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca()
44 return css_ca(ca->css.parent); in parent_ca()
60 return &root_cpuacct.css; in cpuacct_css_alloc()
74 return &ca->css; in cpuacct_css_alloc()
85 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument
87 struct cpuacct *ca = css_ca(css); in cpuacct_css_free()
161 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument
164 struct cpuacct *ca = css_ca(css); in __cpuusage_read()
[all …]
Dcore.c1755 uclamp_update_active_tasks(struct cgroup_subsys_state *css) in uclamp_update_active_tasks() argument
1760 css_task_iter_start(css, 0, &it); in uclamp_update_active_tasks()
1766 static void cpu_util_update_eff(struct cgroup_subsys_state *css);
1782 cpu_util_update_eff(&root_task_group.css); in uclamp_update_root_tg()
4825 struct task_group, css); in sched_cgroup_fork()
10450 struct task_group, css); in sched_change_group()
10504 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() argument
10506 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
10517 return &root_task_group.css; in cpu_cgroup_css_alloc()
10524 return &tg->css; in cpu_cgroup_css_alloc()
[all …]
Ddebug.c506 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
Dsched.h373 struct cgroup_subsys_state css; member
Drt.c2851 css_task_iter_start(&tg->css, 0, &it); in tg_has_rt_tasks()
/kernel/bpf/
Dcgroup_iter.c86 struct cgroup_subsys_state *css, int in_stop);
121 struct cgroup_subsys_state *css, int in_stop) in __cgroup_iter_seq_show() argument
130 if (css && cgroup_is_dead(css->cgroup)) in __cgroup_iter_seq_show()
134 ctx.cgroup = css ? css->cgroup : NULL; in __cgroup_iter_seq_show()
Dcgroup.c507 struct cgroup_subsys_state *css; in update_effective_progs() local
511 css_for_each_descendant_pre(css, &cgrp->self) { in update_effective_progs()
512 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
523 css_for_each_descendant_pre(css, &cgrp->self) { in update_effective_progs()
524 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
544 css_for_each_descendant_pre(css, &cgrp->self) { in update_effective_progs()
545 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
746 struct cgroup_subsys_state *css; in replace_effective_prog() local
753 css_for_each_descendant_pre(css, &cgrp->self) { in replace_effective_prog()
754 struct cgroup *desc = container_of(css, struct cgroup, self); in replace_effective_prog()
[all …]
/kernel/events/
Dcore.c716 return cgroup_is_descendant(cpuctx->cgrp->css.cgroup, in perf_cgroup_match()
717 event->cgrp->css.cgroup); in perf_cgroup_match()
722 css_put(&event->cgrp->css); in perf_detach_cgroup()
764 struct cgroup_subsys_state *css; in update_cgrp_time_from_cpuctx() local
770 for (css = &cgrp->css; css; css = css->parent) { in update_cgrp_time_from_cpuctx()
771 cgrp = container_of(css, struct perf_cgroup, css); in update_cgrp_time_from_cpuctx()
806 struct cgroup_subsys_state *css; in perf_cgroup_set_timestamp() local
818 for (css = &cgrp->css; css; css = css->parent) { in perf_cgroup_set_timestamp()
819 cgrp = container_of(css, struct perf_cgroup, css); in perf_cgroup_set_timestamp()
877 struct cgroup_subsys_state *css) in perf_cgroup_ensure_storage() argument
[all …]
/kernel/
Dkthread.c1500 void kthread_associate_blkcg(struct cgroup_subsys_state *css) in kthread_associate_blkcg() argument
1514 if (css) { in kthread_associate_blkcg()
1515 css_get(css); in kthread_associate_blkcg()
1516 kthread->blkcg_css = css; in kthread_associate_blkcg()
/kernel/trace/
Dblktrace.c149 struct cgroup_subsys_state *css, const char *fmt, ...) in __blk_trace_note_message() argument
175 if (css && (blk_tracer_flags.val & TRACE_BLK_OPT_CGROUP)) in __blk_trace_note_message()
176 cgid = cgroup_id(css->cgroup); in __blk_trace_note_message()