Lines Matching refs:cgrp
24 void bpf_cgroup_release(struct cgroup *cgrp) __ksym;
31 struct cgroup *cgrp = ctx->cgroup; in cgroup_iter() local
34 if (cgrp == NULL) in cgroup_iter()
37 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, in cgroup_iter()
40 cgroup_id = cgrp->kn->id; in cgroup_iter()
44 static void __no_rcu_lock(struct cgroup *cgrp) in __no_rcu_lock() argument
51 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, in __no_rcu_lock()
54 cgroup_id = cgrp->kn->id; in __no_rcu_lock()
61 struct cgroup *cgrp; in cgrp1_no_rcu_lock() local
68 cgrp = bpf_task_get_cgroup1(task, target_hid); in cgrp1_no_rcu_lock()
69 if (!cgrp) in cgrp1_no_rcu_lock()
72 __no_rcu_lock(cgrp); in cgrp1_no_rcu_lock()
73 bpf_cgroup_release(cgrp); in cgrp1_no_rcu_lock()
95 struct cgroup *cgrp; in yes_rcu_lock() local
104 cgrp = bpf_task_get_cgroup1(task, target_hid); in yes_rcu_lock()
105 if (!cgrp) { in yes_rcu_lock()
110 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in yes_rcu_lock()
112 cgroup_id = cgrp->kn->id; in yes_rcu_lock()
113 bpf_cgroup_release(cgrp); in yes_rcu_lock()
119 cgrp = task->cgroups->dfl_cgrp; in yes_rcu_lock()
121 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in yes_rcu_lock()
123 cgroup_id = cgrp->kn->id; in yes_rcu_lock()