Lines Matching refs:prog
23 struct bpf_prog *prog; member
423 int bpf_cgroup_storage_assign(struct bpf_prog *prog, struct bpf_map *_map) in bpf_cgroup_storage_assign() argument
431 if (map->prog && map->prog != prog) in bpf_cgroup_storage_assign()
433 if (prog->aux->cgroup_storage[stype] && in bpf_cgroup_storage_assign()
434 prog->aux->cgroup_storage[stype] != _map) in bpf_cgroup_storage_assign()
437 map->prog = prog; in bpf_cgroup_storage_assign()
438 prog->aux->cgroup_storage[stype] = _map; in bpf_cgroup_storage_assign()
446 void bpf_cgroup_storage_release(struct bpf_prog *prog, struct bpf_map *_map) in bpf_cgroup_storage_release() argument
452 if (map->prog == prog) { in bpf_cgroup_storage_release()
453 WARN_ON(prog->aux->cgroup_storage[stype] != _map); in bpf_cgroup_storage_release()
454 map->prog = NULL; in bpf_cgroup_storage_release()
455 prog->aux->cgroup_storage[stype] = NULL; in bpf_cgroup_storage_release()
477 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog, in bpf_cgroup_storage_alloc() argument
486 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storage_alloc()