Lines Matching refs:bpf_prog

30 struct bpf_prog;
107 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
108 struct bpf_prog *new);
391 bool (*allowed)(const struct bpf_prog *prog);
485 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
493 const struct bpf_prog *prog);
499 const struct bpf_prog *prog,
502 const struct bpf_prog *prog);
508 struct bpf_prog *prog, u32 *target_size);
527 int (*prepare)(struct bpf_prog *prog);
528 int (*translate)(struct bpf_prog *prog);
529 void (*destroy)(struct bpf_prog *prog);
533 struct bpf_prog *prog;
594 struct bpf_prog *progs[BPF_MAX_TRAMP_PROGS];
624 u64 notrace __bpf_prog_enter(struct bpf_prog *prog);
625 void notrace __bpf_prog_exit(struct bpf_prog *prog, u64 start);
626 u64 notrace __bpf_prog_enter_sleepable(struct bpf_prog *prog);
627 void notrace __bpf_prog_exit_sleepable(struct bpf_prog *prog, u64 start);
676 struct bpf_prog *extension_prog;
697 struct bpf_prog *prog;
721 int bpf_trampoline_link_prog(struct bpf_prog *prog, struct bpf_trampoline *tr);
722 int bpf_trampoline_unlink_prog(struct bpf_prog *prog, struct bpf_trampoline *tr);
760 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,
761 struct bpf_prog *to);
771 static inline int bpf_trampoline_link_prog(struct bpf_prog *prog, in bpf_trampoline_link_prog()
776 static inline int bpf_trampoline_unlink_prog(struct bpf_prog *prog, in bpf_trampoline_unlink_prog()
792 struct bpf_prog *from, in bpf_dispatcher_change_prog()
793 struct bpf_prog *to) {} in bpf_dispatcher_change_prog()
859 struct bpf_prog *dst_prog;
874 struct bpf_prog **func;
884 struct bpf_prog *prog;
949 struct bpf_prog *prog;
957 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
958 struct bpf_prog *old_prog);
1091 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp);
1092 int bpf_prog_calc_tag(struct bpf_prog *fp);
1101 struct bpf_prog *prog,
1120 struct bpf_prog *prog;
1140 struct bpf_prog *old_prog);
1143 struct bpf_prog *prog);
1148 struct bpf_prog *exclude_prog,
1149 struct bpf_prog *include_prog,
1188 typedef u32 (*bpf_prog_run_fn)(const struct bpf_prog *prog, const void *ctx);
1196 const struct bpf_prog *prog; in BPF_PROG_RUN_ARRAY_CG_FLAGS()
1226 const struct bpf_prog *prog; in BPF_PROG_RUN_ARRAY_CG()
1253 const struct bpf_prog *prog; in BPF_PROG_RUN_ARRAY()
1367 struct bpf_prog *bpf_prog_get(u32 ufd);
1368 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
1370 void bpf_prog_add(struct bpf_prog *prog, int i);
1371 void bpf_prog_sub(struct bpf_prog *prog, int i);
1372 void bpf_prog_inc(struct bpf_prog *prog);
1373 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
1374 void bpf_prog_put(struct bpf_prog *prog);
1376 void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock);
1401 struct bpf_prog *bpf_prog_get_curr_or_next(u32 *id);
1459 int bpf_prog_new_fd(struct bpf_prog *prog);
1462 const struct bpf_link_ops *ops, struct bpf_prog *prog);
1484 typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *prog,
1494 const struct bpf_prog *prog);
1529 bool bpf_iter_prog_supported(struct bpf_prog *prog);
1531 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
1532 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
1535 struct bpf_prog *bpf_iter_get_info(struct bpf_iter_meta *meta, bool in_stop);
1536 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
1583 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr);
1605 struct bpf_prog *xdp_prog);
1607 struct bpf_prog *xdp_prog, struct bpf_map *map,
1623 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
1626 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
1628 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
1630 int bpf_prog_test_run_tracing(struct bpf_prog *prog,
1633 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
1636 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
1639 int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
1644 const struct bpf_prog *prog,
1668 int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
1671 struct bpf_prog *bpf_prog_by_id(u32 id);
1676 bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog);
1678 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
1681 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get()
1686 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev()
1693 static inline void bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add()
1697 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub()
1701 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
1705 static inline void bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc()
1709 static inline struct bpf_prog *__must_check
1710 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
1717 struct bpf_prog *prog) in bpf_link_init()
1787 struct bpf_prog *xdp_prog) in dev_map_generic_redirect()
1794 struct bpf_prog *xdp_prog, struct bpf_map *map, in dev_map_redirect_multi()
1822 static inline struct bpf_prog *bpf_prog_get_type_path(const char *name, in bpf_prog_get_type_path()
1828 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog, in bpf_prog_test_run_xdp()
1835 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog, in bpf_prog_test_run_skb()
1842 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing()
1849 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector()
1856 static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, in bpf_prog_test_run_sk_lookup()
1872 static inline struct bpf_prog *bpf_prog_by_id(u32 id) in bpf_prog_by_id()
1887 static inline bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog) in bpf_prog_has_kfunc_call()
1893 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, in bpf_jit_find_kfunc_model()
1903 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type()
1912 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
1914 int bpf_prog_offload_compile(struct bpf_prog *prog);
1915 void bpf_prog_offload_destroy(struct bpf_prog *prog);
1917 struct bpf_prog *prog);
1928 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
1938 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
1941 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr);
1955 int bpf_prog_test_run_syscall(struct bpf_prog *prog,
1959 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
1965 static inline int bpf_prog_offload_init(struct bpf_prog *prog, in bpf_prog_offload_init()
1990 static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog, in bpf_prog_test_run_syscall()
1999 struct bpf_prog *prog) in sock_map_get_from_fd()
2110 enum bpf_func_id func_id, const struct bpf_prog *prog);
2126 struct bpf_prog *prog,
2144 struct bpf_prog *prog, in bpf_sock_convert_ctx_access()
2168 struct bpf_prog *prog,
2177 struct bpf_prog *prog,
2190 struct bpf_prog *prog, in bpf_tcp_sock_convert_ctx_access()
2205 struct bpf_prog *prog, in bpf_xdp_sock_convert_ctx_access()