Lines Matching refs:prog
21 struct bpf_prog *prog; member
255 int bpf_cgroup_storage_assign(struct bpf_prog *prog, struct bpf_map *_map) in bpf_cgroup_storage_assign() argument
262 if (map->prog && map->prog != prog) in bpf_cgroup_storage_assign()
264 if (prog->aux->cgroup_storage && prog->aux->cgroup_storage != _map) in bpf_cgroup_storage_assign()
267 map->prog = prog; in bpf_cgroup_storage_assign()
268 prog->aux->cgroup_storage = _map; in bpf_cgroup_storage_assign()
276 void bpf_cgroup_storage_release(struct bpf_prog *prog, struct bpf_map *_map) in bpf_cgroup_storage_release() argument
281 if (map->prog == prog) { in bpf_cgroup_storage_release()
282 WARN_ON(prog->aux->cgroup_storage != _map); in bpf_cgroup_storage_release()
283 map->prog = NULL; in bpf_cgroup_storage_release()
284 prog->aux->cgroup_storage = NULL; in bpf_cgroup_storage_release()
289 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog) in bpf_cgroup_storage_alloc() argument
295 map = prog->aux->cgroup_storage; in bpf_cgroup_storage_alloc()