Lines Matching refs:bpf_prog
970 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
1025 static int bpf_prog_charge_memlock(struct bpf_prog *prog) in bpf_prog_charge_memlock()
1040 static void bpf_prog_uncharge_memlock(struct bpf_prog *prog) in bpf_prog_uncharge_memlock()
1048 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id()
1067 void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock) in bpf_prog_free_id()
1101 static void __bpf_prog_put(struct bpf_prog *prog, bool do_idr_lock) in __bpf_prog_put()
1112 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
1120 struct bpf_prog *prog = filp->private_data; in bpf_prog_release()
1129 const struct bpf_prog *prog = filp->private_data; in bpf_prog_show_fdinfo()
1156 int bpf_prog_new_fd(struct bpf_prog *prog) in bpf_prog_new_fd()
1168 static struct bpf_prog *____bpf_prog_get(struct fd f) in ____bpf_prog_get()
1180 struct bpf_prog *bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add()
1190 void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub()
1201 struct bpf_prog *bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc()
1208 struct bpf_prog *bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
1226 bool bpf_prog_get_ok(struct bpf_prog *prog, in bpf_prog_get_ok()
1241 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, in __bpf_prog_get()
1245 struct bpf_prog *prog; in __bpf_prog_get()
1261 struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get()
1266 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, in bpf_prog_get_type_dev()
1336 struct bpf_prog *prog; in bpf_prog_load()
1480 struct bpf_prog *prog;
1507 struct bpf_prog *prog; in bpf_raw_tracepoint_open()
1553 static int bpf_prog_attach_check_attach_type(const struct bpf_prog *prog, in bpf_prog_attach_check_attach_type()
1573 struct bpf_prog *prog; in bpf_prog_attach()
1740 struct bpf_prog *prog; in bpf_prog_test_run()
1791 struct bpf_prog *prog; in bpf_prog_get_fd_by_id()
1857 static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, in bpf_map_from_imm()
1868 static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog) in bpf_insn_prepare_dump()
1918 static int bpf_prog_get_info_by_fd(struct bpf_prog *prog, in bpf_prog_get_info_by_fd()