Lines Matching refs:cgrp
23 void bpf_cgroup_release(struct cgroup *cgrp) __ksym;
30 struct cgroup *cgrp = ctx->cgroup; in cgroup_iter() local
33 if (cgrp == NULL) in cgroup_iter()
36 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, in cgroup_iter()
39 cgroup_id = cgrp->kn->id; in cgroup_iter()
43 static void __no_rcu_lock(struct cgroup *cgrp) in __no_rcu_lock() argument
50 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, in __no_rcu_lock()
53 cgroup_id = cgrp->kn->id; in __no_rcu_lock()
60 struct cgroup *cgrp; in cgrp1_no_rcu_lock() local
67 cgrp = bpf_task_get_cgroup1(task, target_hid); in cgrp1_no_rcu_lock()
68 if (!cgrp) in cgrp1_no_rcu_lock()
71 __no_rcu_lock(cgrp); in cgrp1_no_rcu_lock()
72 bpf_cgroup_release(cgrp); in cgrp1_no_rcu_lock()
94 struct cgroup *cgrp; in yes_rcu_lock() local
103 cgrp = bpf_task_get_cgroup1(task, target_hid); in yes_rcu_lock()
104 if (!cgrp) { in yes_rcu_lock()
109 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in yes_rcu_lock()
111 cgroup_id = cgrp->kn->id; in yes_rcu_lock()
112 bpf_cgroup_release(cgrp); in yes_rcu_lock()
118 cgrp = task->cgroups->dfl_cgrp; in yes_rcu_lock()
120 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in yes_rcu_lock()
122 cgroup_id = cgrp->kn->id; in yes_rcu_lock()