Lines Matching refs:bpf_prog

36 struct bpf_prog;
122 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
123 struct bpf_prog *new);
751 bool (*allowed)(const struct bpf_prog *prog);
855 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
864 const struct bpf_prog *prog);
870 const struct bpf_prog *prog,
873 const struct bpf_prog *prog);
879 struct bpf_prog *prog, u32 *target_size);
896 int (*prepare)(struct bpf_prog *prog);
897 int (*translate)(struct bpf_prog *prog);
898 void (*destroy)(struct bpf_prog *prog);
902 struct bpf_prog *prog;
1018 u64 notrace __bpf_prog_enter_sleepable_recur(struct bpf_prog *prog,
1020 void notrace __bpf_prog_exit_sleepable_recur(struct bpf_prog *prog, u64 start,
1024 typedef u64 (*bpf_trampoline_enter_t)(struct bpf_prog *prog,
1026 typedef void (*bpf_trampoline_exit_t)(struct bpf_prog *prog, u64 start,
1028 bpf_trampoline_enter_t bpf_trampoline_enter(const struct bpf_prog *prog);
1029 bpf_trampoline_exit_t bpf_trampoline_exit(const struct bpf_prog *prog);
1078 struct bpf_prog *extension_prog;
1099 struct bpf_prog *prog;
1198 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,
1199 struct bpf_prog *to);
1207 bool bpf_prog_has_trampoline(const struct bpf_prog *prog);
1230 struct bpf_prog *from, in bpf_dispatcher_change_prog()
1231 struct bpf_prog *to) {} in bpf_dispatcher_change_prog()
1236 static inline bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline()
1301 struct bpf_prog *dst_prog;
1317 struct bpf_prog **func;
1328 struct bpf_prog *prog;
1372 struct bpf_prog { struct
1419 struct bpf_prog *prog; argument
1427 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
1428 struct bpf_prog *old_prog);
1449 struct bpf_prog *tgt_prog;
1468 const struct bpf_prog *prog);
1522 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
1551 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,
1553 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog);
1555 static inline int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim()
1560 static inline void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim()
1631 bool bpf_prog_map_compatible(struct bpf_map *map, const struct bpf_prog *fp);
1632 int bpf_prog_calc_tag(struct bpf_prog *fp);
1642 struct bpf_prog *prog,
1661 struct bpf_prog *prog;
1675 struct bpf_prog *null_prog;
1696 struct bpf_prog *old_prog);
1699 struct bpf_prog *prog);
1704 struct bpf_prog *exclude_prog,
1705 struct bpf_prog *include_prog,
1751 typedef u32 (*bpf_prog_run_fn)(const struct bpf_prog *prog, const void *ctx);
1758 const struct bpf_prog *prog; in bpf_prog_run_array()
1796 const struct bpf_prog *prog; in bpf_prog_run_array_sleepable()
1871 struct bpf_prog *bpf_prog_get(u32 ufd);
1872 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
1874 void bpf_prog_add(struct bpf_prog *prog, int i);
1875 void bpf_prog_sub(struct bpf_prog *prog, int i);
1876 void bpf_prog_inc(struct bpf_prog *prog);
1877 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
1878 void bpf_prog_put(struct bpf_prog *prog);
1880 void bpf_prog_free_id(struct bpf_prog *prog);
1915 struct bpf_prog *bpf_prog_get_curr_or_next(u32 *id);
1976 int bpf_prog_new_fd(struct bpf_prog *prog);
1979 const struct bpf_link_ops *ops, struct bpf_prog *prog);
2034 typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *prog,
2044 const struct bpf_prog *prog);
2079 bool bpf_iter_prog_supported(struct bpf_prog *prog);
2081 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
2082 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
2085 struct bpf_prog *bpf_iter_get_info(struct bpf_iter_meta *meta, bool in_stop);
2086 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
2117 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr);
2139 struct bpf_prog *xdp_prog);
2141 struct bpf_prog *xdp_prog, struct bpf_map *map,
2157 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
2160 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
2162 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
2164 int bpf_prog_test_run_tracing(struct bpf_prog *prog,
2167 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
2170 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
2173 int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
2177 const struct bpf_prog *prog,
2194 const struct bpf_prog *prog, in bpf_tracing_btf_ctx_access()
2224 int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
2227 struct bpf_prog *bpf_prog_by_id(u32 id);
2233 bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog);
2235 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
2268 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog);
2270 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get()
2275 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev()
2282 static inline void bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add()
2286 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub()
2290 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
2294 static inline void bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc()
2298 static inline struct bpf_prog *__must_check
2299 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
2306 struct bpf_prog *prog) in bpf_link_init()
2371 struct bpf_prog *xdp_prog) in dev_map_generic_redirect()
2378 struct bpf_prog *xdp_prog, struct bpf_map *map, in dev_map_redirect_multi()
2401 static inline struct bpf_prog *bpf_prog_get_type_path(const char *name, in bpf_prog_get_type_path()
2407 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog, in bpf_prog_test_run_xdp()
2414 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog, in bpf_prog_test_run_skb()
2421 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing()
2428 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector()
2435 static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, in bpf_prog_test_run_sk_lookup()
2446 static inline struct bpf_prog *bpf_prog_by_id(u32 id) in bpf_prog_by_id()
2469 static inline bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog) in bpf_prog_has_kfunc_call()
2475 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, in bpf_jit_find_kfunc_model()
2491 static inline void bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter()
2503 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type()
2512 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
2514 int bpf_prog_offload_compile(struct bpf_prog *prog);
2515 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog);
2517 struct bpf_prog *prog);
2528 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
2538 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
2545 void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, u32 func_id);
2546 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr);
2547 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog);
2560 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs);
2569 int bpf_prog_test_run_syscall(struct bpf_prog *prog,
2573 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
2589 static inline void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, in bpf_dev_bound_resolve_kfunc()
2595 static inline int bpf_prog_dev_bound_init(struct bpf_prog *prog, in bpf_prog_dev_bound_init()
2601 static inline int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, in bpf_prog_dev_bound_inherit()
2602 struct bpf_prog *old_prog) in bpf_prog_dev_bound_inherit()
2621 static inline bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs) in bpf_prog_dev_bound_match()
2640 static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog, in bpf_prog_test_run_syscall()
2649 struct bpf_prog *prog) in sock_map_get_from_fd()
2786 enum bpf_func_id func_id, const struct bpf_prog *prog);
2802 struct bpf_prog *prog,
2820 struct bpf_prog *prog, in bpf_sock_convert_ctx_access()
2844 struct bpf_prog *prog,
2853 struct bpf_prog *prog,
2866 struct bpf_prog *prog, in bpf_tcp_sock_convert_ctx_access()
2881 struct bpf_prog *prog, in bpf_xdp_sock_convert_ctx_access()