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);
809 bool (*allowed)(const struct bpf_prog *prog);
913 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
922 const struct bpf_prog *prog);
928 const struct bpf_prog *prog,
931 const struct bpf_prog *prog);
937 struct bpf_prog *prog, u32 *target_size);
953 int (*prepare)(struct bpf_prog *prog);
954 int (*translate)(struct bpf_prog *prog);
955 void (*destroy)(struct bpf_prog *prog);
959 struct bpf_prog *prog;
1075 u64 notrace __bpf_prog_enter_sleepable_recur(struct bpf_prog *prog,
1077 void notrace __bpf_prog_exit_sleepable_recur(struct bpf_prog *prog, u64 start,
1081 typedef u64 (*bpf_trampoline_enter_t)(struct bpf_prog *prog,
1083 typedef void (*bpf_trampoline_exit_t)(struct bpf_prog *prog, u64 start,
1085 bpf_trampoline_enter_t bpf_trampoline_enter(const struct bpf_prog *prog);
1086 bpf_trampoline_exit_t bpf_trampoline_exit(const struct bpf_prog *prog);
1135 struct bpf_prog *extension_prog;
1156 struct bpf_prog *prog;
1286 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,
1287 struct bpf_prog *to);
1295 bool bpf_prog_has_trampoline(const struct bpf_prog *prog);
1318 struct bpf_prog *from, in bpf_dispatcher_change_prog()
1319 struct bpf_prog *to) {} in bpf_dispatcher_change_prog()
1324 static inline bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline()
1389 struct bpf_prog *dst_prog;
1405 struct bpf_prog **func;
1416 struct bpf_prog *prog;
1461 struct bpf_prog { struct
1508 struct bpf_prog *prog; argument
1516 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
1517 struct bpf_prog *old_prog);
1540 struct bpf_prog *tgt_prog;
1606 const struct bpf_prog *prog);
1663 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
1697 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,
1699 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog);
1701 static inline int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim()
1706 static inline void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim()
1781 bool bpf_prog_map_compatible(struct bpf_map *map, const struct bpf_prog *fp);
1782 int bpf_prog_calc_tag(struct bpf_prog *fp);
1792 struct bpf_prog *prog,
1811 struct bpf_prog *prog;
1825 struct bpf_prog *null_prog;
1846 struct bpf_prog *old_prog);
1849 struct bpf_prog *prog);
1854 struct bpf_prog *exclude_prog,
1855 struct bpf_prog *include_prog,
1902 typedef u32 (*bpf_prog_run_fn)(const struct bpf_prog *prog, const void *ctx);
1909 const struct bpf_prog *prog; in bpf_prog_run_array()
1949 const struct bpf_prog *prog; in bpf_prog_run_array_uprobe()
2026 struct bpf_prog *bpf_prog_get(u32 ufd);
2027 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
2029 void bpf_prog_add(struct bpf_prog *prog, int i);
2030 void bpf_prog_sub(struct bpf_prog *prog, int i);
2031 void bpf_prog_inc(struct bpf_prog *prog);
2032 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
2033 void bpf_prog_put(struct bpf_prog *prog);
2035 void bpf_prog_free_id(struct bpf_prog *prog);
2071 struct bpf_prog *bpf_prog_get_curr_or_next(u32 *id);
2161 int bpf_prog_new_fd(struct bpf_prog *prog);
2164 const struct bpf_link_ops *ops, struct bpf_prog *prog);
2218 typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *prog,
2228 const struct bpf_prog *prog);
2263 bool bpf_iter_prog_supported(struct bpf_prog *prog);
2265 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
2266 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
2269 struct bpf_prog *bpf_iter_get_info(struct bpf_iter_meta *meta, bool in_stop);
2270 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
2301 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size);
2323 struct bpf_prog *xdp_prog);
2325 struct bpf_prog *xdp_prog, struct bpf_map *map,
2341 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
2344 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
2346 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
2348 int bpf_prog_test_run_tracing(struct bpf_prog *prog,
2351 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
2354 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
2357 int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
2360 int bpf_prog_test_run_nf(struct bpf_prog *prog,
2364 const struct bpf_prog *prog,
2381 const struct bpf_prog *prog, in bpf_tracing_btf_ctx_access()
2411 int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
2414 struct bpf_prog *bpf_prog_by_id(u32 id);
2420 bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog);
2422 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
2424 int bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id,
2458 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog);
2465 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get()
2470 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev()
2477 static inline void bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add()
2481 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub()
2485 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
2489 static inline void bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc()
2493 static inline struct bpf_prog *__must_check
2494 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
2501 struct bpf_prog *prog) in bpf_link_init()
2566 struct bpf_prog *xdp_prog) in dev_map_generic_redirect()
2573 struct bpf_prog *xdp_prog, struct bpf_map *map, in dev_map_redirect_multi()
2596 static inline struct bpf_prog *bpf_prog_get_type_path(const char *name, in bpf_prog_get_type_path()
2602 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog, in bpf_prog_test_run_xdp()
2609 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog, in bpf_prog_test_run_skb()
2616 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing()
2623 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector()
2630 static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, in bpf_prog_test_run_sk_lookup()
2641 static inline struct bpf_prog *bpf_prog_by_id(u32 id) in bpf_prog_by_id()
2665 static inline bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog) in bpf_prog_has_kfunc_call()
2671 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, in bpf_jit_find_kfunc_model()
2678 bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id, in bpf_get_kfunc_addr()
2694 static inline void bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter()
2731 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type()
2740 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
2742 int bpf_prog_offload_compile(struct bpf_prog *prog);
2743 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog);
2745 struct bpf_prog *prog);
2756 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
2766 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
2773 void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, u32 func_id);
2774 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr);
2775 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog);
2788 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs);
2798 int bpf_prog_test_run_syscall(struct bpf_prog *prog,
2802 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
2818 static inline void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, in bpf_dev_bound_resolve_kfunc()
2824 static inline int bpf_prog_dev_bound_init(struct bpf_prog *prog, in bpf_prog_dev_bound_init()
2830 static inline int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, in bpf_prog_dev_bound_inherit()
2831 struct bpf_prog *old_prog) in bpf_prog_dev_bound_inherit()
2850 static inline bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs) in bpf_prog_dev_bound_match()
2874 static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog, in bpf_prog_test_run_syscall()
2883 struct bpf_prog *prog) in sock_map_get_from_fd()
3020 enum bpf_func_id func_id, const struct bpf_prog *prog);
3036 struct bpf_prog *prog,
3056 struct bpf_prog *prog, in bpf_sock_convert_ctx_access()
3085 struct bpf_prog *prog,
3094 struct bpf_prog *prog,
3107 struct bpf_prog *prog, in bpf_tcp_sock_convert_ctx_access()
3122 struct bpf_prog *prog, in bpf_xdp_sock_convert_ctx_access()