Lines Matching refs:cgrp
33 int BPF_PROG(test_cgrp_acquire_release_argument, struct cgroup *cgrp, const char *path) in BPF_PROG() argument
40 acquired = bpf_cgroup_acquire(cgrp); in BPF_PROG()
50 int BPF_PROG(test_cgrp_acquire_leave_in_map, struct cgroup *cgrp, const char *path) in BPF_PROG() argument
57 status = cgrps_kfunc_map_insert(cgrp); in BPF_PROG()
65 int BPF_PROG(test_cgrp_xchg_release, struct cgroup *cgrp, const char *path) in BPF_PROG() argument
74 status = cgrps_kfunc_map_insert(cgrp); in BPF_PROG()
80 v = cgrps_kfunc_map_value_lookup(cgrp); in BPF_PROG()
86 kptr = v->cgrp; in BPF_PROG()
96 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
108 int BPF_PROG(test_cgrp_get_release, struct cgroup *cgrp, const char *path) in BPF_PROG() argument
117 status = cgrps_kfunc_map_insert(cgrp); in BPF_PROG()
123 v = cgrps_kfunc_map_value_lookup(cgrp); in BPF_PROG()
130 kptr = v->cgrp; in BPF_PROG()
139 int BPF_PROG(test_cgrp_get_ancestors, struct cgroup *cgrp, const char *path) in BPF_PROG() argument
146 self = bpf_cgroup_ancestor(cgrp, cgrp->level); in BPF_PROG()
152 if (self->self.id != cgrp->self.id) { in BPF_PROG()
159 ancestor1 = bpf_cgroup_ancestor(cgrp, cgrp->level - 1); in BPF_PROG()
166 invalid = bpf_cgroup_ancestor(cgrp, 10000); in BPF_PROG()
173 invalid = bpf_cgroup_ancestor(cgrp, -1); in BPF_PROG()
184 int BPF_PROG(test_cgrp_from_id, struct cgroup *cgrp, const char *path) in BPF_PROG() argument
193 parent = bpf_cgroup_ancestor(cgrp, cgrp->level - 1); in BPF_PROG()