Lines Matching refs:bpf_prog

27 struct bpf_prog;
97 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
98 struct bpf_prog *new);
345 bool (*allowed)(const struct bpf_prog *prog);
433 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
441 const struct bpf_prog *prog);
447 const struct bpf_prog *prog,
450 const struct bpf_prog *prog);
456 struct bpf_prog *prog, u32 *target_size);
473 int (*prepare)(struct bpf_prog *prog);
474 int (*translate)(struct bpf_prog *prog);
475 void (*destroy)(struct bpf_prog *prog);
479 struct bpf_prog *prog;
535 struct bpf_prog *progs[BPF_MAX_TRAMP_PROGS];
565 void notrace __bpf_prog_exit(struct bpf_prog *prog, u64 start);
602 struct bpf_prog *extension_prog;
623 struct bpf_prog *prog;
647 int bpf_trampoline_link_prog(struct bpf_prog *prog, struct bpf_trampoline *tr);
648 int bpf_trampoline_unlink_prog(struct bpf_prog *prog, struct bpf_trampoline *tr);
686 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,
687 struct bpf_prog *to);
695 static inline int bpf_trampoline_link_prog(struct bpf_prog *prog, in bpf_trampoline_link_prog()
700 static inline int bpf_trampoline_unlink_prog(struct bpf_prog *prog, in bpf_trampoline_unlink_prog()
716 struct bpf_prog *from, in bpf_dispatcher_change_prog()
717 struct bpf_prog *to) {} in bpf_dispatcher_change_prog()
773 struct bpf_prog *dst_prog;
789 struct bpf_prog **func;
797 struct bpf_prog *prog;
860 struct bpf_prog *prog;
868 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
869 struct bpf_prog *old_prog);
1003 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp);
1004 int bpf_prog_calc_tag(struct bpf_prog *fp);
1014 struct bpf_prog *prog,
1033 struct bpf_prog *prog;
1050 struct bpf_prog *old_prog);
1053 struct bpf_prog *prog);
1058 struct bpf_prog *exclude_prog,
1059 struct bpf_prog *include_prog,
1065 struct bpf_prog *_prog; \
1110 struct bpf_prog *_prog; \
1194 struct bpf_prog *bpf_prog_get(u32 ufd);
1195 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
1197 void bpf_prog_add(struct bpf_prog *prog, int i);
1198 void bpf_prog_sub(struct bpf_prog *prog, int i);
1199 void bpf_prog_inc(struct bpf_prog *prog);
1200 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
1201 void bpf_prog_put(struct bpf_prog *prog);
1207 void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock);
1238 struct bpf_prog *bpf_prog_get_curr_or_next(u32 *id);
1263 int bpf_prog_new_fd(struct bpf_prog *prog);
1266 const struct bpf_link_ops *ops, struct bpf_prog *prog);
1288 typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *prog,
1324 bool bpf_iter_prog_supported(struct bpf_prog *prog);
1325 int bpf_iter_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
1328 struct bpf_prog *bpf_iter_get_info(struct bpf_iter_meta *meta, bool in_stop);
1329 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
1372 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr,
1390 struct bpf_prog *xdp_prog);
1406 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
1409 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
1411 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
1413 int bpf_prog_test_run_tracing(struct bpf_prog *prog,
1416 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
1419 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
1423 const struct bpf_prog *prog,
1443 int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
1446 struct bpf_prog *bpf_prog_by_id(u32 id);
1451 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get()
1456 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev()
1463 static inline void bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add()
1467 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub()
1471 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
1475 static inline void bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc()
1479 static inline struct bpf_prog *__must_check
1480 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
1496 struct bpf_prog *prog) in bpf_link_init()
1569 struct bpf_prog *xdp_prog) in dev_map_generic_redirect()
1596 static inline struct bpf_prog *bpf_prog_get_type_path(const char *name, in bpf_prog_get_type_path()
1602 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog, in bpf_prog_test_run_xdp()
1609 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog, in bpf_prog_test_run_skb()
1616 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing()
1623 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector()
1634 static inline struct bpf_prog *bpf_prog_by_id(u32 id) in bpf_prog_by_id()
1646 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type()
1652 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
1654 int bpf_prog_offload_compile(struct bpf_prog *prog);
1655 void bpf_prog_offload_destroy(struct bpf_prog *prog);
1657 struct bpf_prog *prog);
1668 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
1678 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
1681 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr);
1696 static inline int bpf_prog_offload_init(struct bpf_prog *prog, in bpf_prog_offload_init()
1723 int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog,
1724 struct bpf_prog *old, u32 which);
1725 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
1732 struct bpf_prog *prog, in sock_map_prog_update()
1733 struct bpf_prog *old, u32 which) in sock_map_prog_update()
1739 struct bpf_prog *prog) in sock_map_get_from_fd()
1839 enum bpf_func_id func_id, const struct bpf_prog *prog);
1842 enum bpf_func_id func_id, const struct bpf_prog *prog);
1858 struct bpf_prog *prog,
1876 struct bpf_prog *prog, in bpf_sock_convert_ctx_access()
1899 struct bpf_prog *prog,
1908 struct bpf_prog *prog,
1921 struct bpf_prog *prog, in bpf_tcp_sock_convert_ctx_access()
1936 struct bpf_prog *prog, in bpf_xdp_sock_convert_ctx_access()