Searched refs:cgrp (Results 1 – 6 of 6) sorted by relevance
/kernel/ |
D | cgroup.c | 241 static void cgroup_lock_and_drain_offline(struct cgroup *cgrp); 242 static int cgroup_apply_control(struct cgroup *cgrp); 243 static void cgroup_finalize_control(struct cgroup *cgrp, int ret); 245 static int cgroup_destroy_locked(struct cgroup *cgrp); 246 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp, 251 struct cgroup *cgrp, struct cftype cfts[], 328 static bool cgroup_on_dfl(const struct cgroup *cgrp) in cgroup_on_dfl() argument 330 return cgrp->root == &cgrp_dfl_root; in cgroup_on_dfl() 364 static struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent() argument 366 struct cgroup_subsys_state *parent_css = cgrp->self.parent; in cgroup_parent() [all …]
|
D | cpuset.c | 2688 struct cgroup *cgrp; in cpuset_print_current_mems_allowed() local 2692 cgrp = task_cs(current)->css.cgroup; in cpuset_print_current_mems_allowed() 2694 pr_cont_cgroup_name(cgrp); in cpuset_print_current_mems_allowed()
|
/kernel/bpf/ |
D | cgroup.c | 26 void cgroup_bpf_put(struct cgroup *cgrp) in cgroup_bpf_put() argument 30 for (type = 0; type < ARRAY_SIZE(cgrp->bpf.prog); type++) { in cgroup_bpf_put() 31 struct bpf_prog *prog = cgrp->bpf.prog[type]; in cgroup_bpf_put() 45 void cgroup_bpf_inherit(struct cgroup *cgrp, struct cgroup *parent) in cgroup_bpf_inherit() argument 49 for (type = 0; type < ARRAY_SIZE(cgrp->bpf.effective); type++) { in cgroup_bpf_inherit() 54 rcu_assign_pointer(cgrp->bpf.effective[type], e); in cgroup_bpf_inherit() 55 cgrp->bpf.disallow_override[type] = parent->bpf.disallow_override[type]; in cgroup_bpf_inherit() 86 int __cgroup_bpf_update(struct cgroup *cgrp, struct cgroup *parent, in __cgroup_bpf_update() argument 112 old_prog = cgrp->bpf.prog[type]; in __cgroup_bpf_update() 118 cgrp->bpf.disallow_override[type] == new_overridable) in __cgroup_bpf_update() [all …]
|
D | syscall.c | 896 struct cgroup *cgrp; in bpf_prog_attach() local 916 cgrp = cgroup_get_from_fd(attr->target_fd); in bpf_prog_attach() 917 if (IS_ERR(cgrp)) { in bpf_prog_attach() 919 return PTR_ERR(cgrp); in bpf_prog_attach() 922 ret = cgroup_bpf_update(cgrp, prog, attr->attach_type, in bpf_prog_attach() 926 cgroup_put(cgrp); in bpf_prog_attach() 940 struct cgroup *cgrp; in bpf_prog_detach() local 952 cgrp = cgroup_get_from_fd(attr->target_fd); in bpf_prog_detach() 953 if (IS_ERR(cgrp)) in bpf_prog_detach() 954 return PTR_ERR(cgrp); in bpf_prog_detach() [all …]
|
/kernel/trace/ |
D | bpf_trace.c | 402 struct cgroup *cgrp; in BPF_CALL_2() local 409 cgrp = READ_ONCE(array->ptrs[idx]); in BPF_CALL_2() 410 if (unlikely(!cgrp)) in BPF_CALL_2() 413 return task_under_cgroup_hierarchy(current, cgrp); in BPF_CALL_2()
|
/kernel/events/ |
D | core.c | 591 if (!event->cgrp) in perf_cgroup_match() 595 if (!cpuctx->cgrp) in perf_cgroup_match() 604 return cgroup_is_descendant(cpuctx->cgrp->css.cgroup, in perf_cgroup_match() 605 event->cgrp->css.cgroup); in perf_cgroup_match() 610 css_put(&event->cgrp->css); in perf_detach_cgroup() 611 event->cgrp = NULL; in perf_detach_cgroup() 616 return event->cgrp != NULL; in is_cgroup_event() 623 t = per_cpu_ptr(event->cgrp->info, event->cpu); in perf_cgroup_event_time() 627 static inline void __update_cgrp_time(struct perf_cgroup *cgrp) in __update_cgrp_time() argument 634 info = this_cpu_ptr(cgrp->info); in __update_cgrp_time() [all …]
|