Lines Matching refs:cgrp
28 void bpf_cgroup_release(struct cgroup *cgrp) __ksym;
30 static void __on_update(struct cgroup *cgrp) in __on_update() argument
34 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in __on_update()
38 ptr = bpf_cgrp_storage_get(&map_b, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in __on_update()
47 struct cgroup *cgrp; in BPF_PROG() local
50 cgrp = bpf_task_get_cgroup1(task, target_hid); in BPF_PROG()
51 if (!cgrp) in BPF_PROG()
54 __on_update(cgrp); in BPF_PROG()
55 bpf_cgroup_release(cgrp); in BPF_PROG()
63 static void __on_enter(struct pt_regs *regs, long id, struct cgroup *cgrp) in __on_enter() argument
67 ptr = bpf_cgrp_storage_get(&map_a, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in __on_enter()
71 ptr = bpf_cgrp_storage_get(&map_b, cgrp, 0, BPF_LOCAL_STORAGE_GET_F_CREATE); in __on_enter()
80 struct cgroup *cgrp; in BPF_PROG() local
83 cgrp = bpf_task_get_cgroup1(task, target_hid); in BPF_PROG()
84 if (!cgrp) in BPF_PROG()
87 __on_enter(regs, id, cgrp); in BPF_PROG()
88 bpf_cgroup_release(cgrp); in BPF_PROG()