Lines Matching defs:bpf_prog

37 struct bpf_prog;
132 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
133 struct bpf_prog *new);
830 bool (*allowed)(const struct bpf_prog *prog);
939 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
948 const struct bpf_prog *prog);
954 const struct bpf_prog *prog,
957 const struct bpf_prog *prog);
963 struct bpf_prog *prog, u32 *target_size);
979 int (*prepare)(struct bpf_prog *prog);
980 int (*translate)(struct bpf_prog *prog);
981 void (*destroy)(struct bpf_prog *prog);
985 struct bpf_prog *prog;
1124 u64 notrace __bpf_prog_enter_sleepable_recur(struct bpf_prog *prog,
1126 void notrace __bpf_prog_exit_sleepable_recur(struct bpf_prog *prog, u64 start,
1130 typedef u64 (*bpf_trampoline_enter_t)(struct bpf_prog *prog,
1132 typedef void (*bpf_trampoline_exit_t)(struct bpf_prog *prog, u64 start,
1134 bpf_trampoline_enter_t bpf_trampoline_enter(const struct bpf_prog *prog);
1135 bpf_trampoline_exit_t bpf_trampoline_exit(const struct bpf_prog *prog);
1185 struct bpf_prog *extension_prog;
1205 struct bpf_prog *prog;
1341 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,
1342 struct bpf_prog *to);
1350 bool bpf_prog_has_trampoline(const struct bpf_prog *prog);
1373 struct bpf_prog *from,
1374 struct bpf_prog *to) {}
1379 static inline bool bpf_prog_has_trampoline(const struct bpf_prog *prog)
1448 struct bpf_prog *dst_prog;
1467 struct bpf_prog **func;
1481 struct bpf_prog *prog;
1528 struct bpf_prog {
1576 struct bpf_prog *prog;
1598 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
1599 struct bpf_prog *old_prog);
1622 struct bpf_prog *tgt_prog;
1713 const struct bpf_prog *prog);
1819 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
1858 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,
1860 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog);
1862 static inline int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,
1867 static inline void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog)
1942 bool bpf_prog_map_compatible(struct bpf_map *map, const struct bpf_prog *fp);
1943 int bpf_prog_calc_tag(struct bpf_prog *fp);
1953 struct bpf_prog *prog,
1972 struct bpf_prog *prog;
1986 struct bpf_prog *null_prog;
2007 struct bpf_prog *old_prog);
2010 struct bpf_prog *prog);
2015 struct bpf_prog *exclude_prog,
2016 struct bpf_prog *include_prog,
2063 typedef u32 (*bpf_prog_run_fn)(const struct bpf_prog *prog, const void *ctx);
2070 const struct bpf_prog *prog;
2110 const struct bpf_prog *prog;
2188 struct bpf_prog *bpf_prog_get(u32 ufd);
2189 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
2191 void bpf_prog_add(struct bpf_prog *prog, int i);
2192 void bpf_prog_sub(struct bpf_prog *prog, int i);
2193 void bpf_prog_inc(struct bpf_prog *prog);
2194 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
2195 void bpf_prog_put(struct bpf_prog *prog);
2197 void bpf_prog_free_id(struct bpf_prog *prog);
2234 struct bpf_prog *bpf_prog_get_curr_or_next(u32 *id);
2328 int bpf_prog_new_fd(struct bpf_prog *prog);
2331 const struct bpf_link_ops *ops, struct bpf_prog *prog);
2398 typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *prog,
2408 const struct bpf_prog *prog);
2443 bool bpf_iter_prog_supported(struct bpf_prog *prog);
2445 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
2446 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
2449 struct bpf_prog *bpf_iter_get_info(struct bpf_iter_meta *meta, bool in_stop);
2450 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
2481 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size);
2503 struct bpf_prog *xdp_prog);
2505 struct bpf_prog *xdp_prog, struct bpf_map *map,
2521 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
2524 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
2526 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
2528 int bpf_prog_test_run_tracing(struct bpf_prog *prog,
2531 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
2534 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
2537 int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
2540 int bpf_prog_test_run_nf(struct bpf_prog *prog,
2544 const struct bpf_prog *prog,
2561 const struct bpf_prog *prog,
2586 int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
2593 struct bpf_prog *bpf_prog_by_id(u32 id);
2597 const struct bpf_prog *prog);
2600 bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog);
2602 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
2604 int bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id,
2638 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog);
2648 static inline struct bpf_prog *bpf_prog_get(u32 ufd)
2653 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd,
2660 static inline void bpf_prog_add(struct bpf_prog *prog, int i)
2664 static inline void bpf_prog_sub(struct bpf_prog *prog, int i)
2668 static inline void bpf_prog_put(struct bpf_prog *prog)
2672 static inline void bpf_prog_inc(struct bpf_prog *prog)
2676 static inline struct bpf_prog *__must_check
2677 bpf_prog_inc_not_zero(struct bpf_prog *prog)
2684 struct bpf_prog *prog)
2767 struct bpf_prog *xdp_prog)
2774 struct bpf_prog *xdp_prog, struct bpf_map *map,
2797 static inline struct bpf_prog *bpf_prog_get_type_path(const char *name,
2803 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog,
2810 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog,
2817 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog,
2824 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
2831 static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
2842 static inline struct bpf_prog *bpf_prog_by_id(u32 id)
2857 bpf_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
2866 static inline bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog)
2872 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
2879 bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id,
2895 static inline void bpf_prog_inc_misses_counter(struct bpf_prog *prog)
2932 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd,
2941 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
2943 int bpf_prog_offload_compile(struct bpf_prog *prog);
2944 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog);
2946 struct bpf_prog *prog);
2957 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
2967 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
2974 void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, u32 func_id);
2975 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr);
2976 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog);
2989 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs);
2999 int bpf_prog_test_run_syscall(struct bpf_prog *prog,
3003 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
3019 static inline void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog,
3025 static inline int bpf_prog_dev_bound_init(struct bpf_prog *prog,
3031 static inline int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog,
3032 struct bpf_prog *old_prog)
3051 static inline bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs)
3075 static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog,
3084 struct bpf_prog *prog)
3113 struct bpf_prog *prog;
3237 enum bpf_func_id func_id, const struct bpf_prog *prog);
3253 struct bpf_prog *prog,
3273 struct bpf_prog *prog,
3302 struct bpf_prog *prog,
3311 struct bpf_prog *prog,
3324 struct bpf_prog *prog,
3339 struct bpf_prog *prog,
3355 struct bpf_prog *new, struct bpf_prog *old);
3406 static inline bool bpf_is_subprog(const struct bpf_prog *prog)