Lines Matching refs:prog
864 bool (*allowed)(const struct bpf_prog *prog);
975 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
984 const struct bpf_prog *prog);
990 const struct bpf_prog *prog,
993 const struct bpf_prog *prog);
994 int (*gen_epilogue)(struct bpf_insn *insn, const struct bpf_prog *prog,
1001 struct bpf_prog *prog, u32 *target_size);
1018 int (*prepare)(struct bpf_prog *prog);
1019 int (*translate)(struct bpf_prog *prog);
1020 void (*destroy)(struct bpf_prog *prog);
1025 struct bpf_prog *prog; member
1164 u64 notrace __bpf_prog_enter_sleepable_recur(struct bpf_prog *prog,
1166 void notrace __bpf_prog_exit_sleepable_recur(struct bpf_prog *prog, u64 start,
1170 typedef u64 (*bpf_trampoline_enter_t)(struct bpf_prog *prog,
1172 typedef void (*bpf_trampoline_exit_t)(struct bpf_prog *prog, u64 start,
1174 bpf_trampoline_enter_t bpf_trampoline_enter(const struct bpf_prog *prog);
1175 bpf_trampoline_exit_t bpf_trampoline_exit(const struct bpf_prog *prog);
1183 bool prog; member
1246 struct bpf_prog *prog; member
1398 bool bpf_prog_has_trampoline(const struct bpf_prog *prog);
1429 static inline bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline() argument
1534 struct bpf_prog *prog; member
1631 struct bpf_prog *prog; member
1776 const struct bpf_prog *prog);
1884 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
1927 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,
1929 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog);
1931 static inline int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim() argument
1936 static inline void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim() argument
2022 struct bpf_prog *prog,
2041 struct bpf_prog *prog; member
2079 struct bpf_prog *prog);
2132 typedef u32 (*bpf_prog_run_fn)(const struct bpf_prog *prog, const void *ctx);
2139 const struct bpf_prog *prog; in bpf_prog_run_array() local
2154 while ((prog = READ_ONCE(item->prog))) { in bpf_prog_run_array()
2156 ret &= run_prog(prog, ctx); in bpf_prog_run_array()
2179 const struct bpf_prog *prog; in bpf_prog_run_array_uprobe() local
2196 while ((prog = READ_ONCE(item->prog))) { in bpf_prog_run_array_uprobe()
2197 if (!prog->sleepable) in bpf_prog_run_array_uprobe()
2201 ret &= run_prog(prog, ctx); in bpf_prog_run_array_uprobe()
2204 if (!prog->sleepable) in bpf_prog_run_array_uprobe()
2257 void bpf_prog_add(struct bpf_prog *prog, int i);
2258 void bpf_prog_sub(struct bpf_prog *prog, int i);
2259 void bpf_prog_inc(struct bpf_prog *prog);
2260 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
2261 void bpf_prog_put(struct bpf_prog *prog);
2263 void bpf_prog_free_id(struct bpf_prog *prog);
2391 int bpf_prog_new_fd(struct bpf_prog *prog);
2394 const struct bpf_link_ops *ops, struct bpf_prog *prog);
2462 typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *prog,
2472 const struct bpf_prog *prog);
2507 bool bpf_iter_prog_supported(struct bpf_prog *prog);
2509 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
2510 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
2514 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
2588 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
2590 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
2592 int bpf_prog_test_run_tracing(struct bpf_prog *prog,
2595 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
2598 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
2601 int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
2604 int bpf_prog_test_run_nf(struct bpf_prog *prog,
2608 const struct bpf_prog *prog,
2625 const struct bpf_prog *prog, in bpf_tracing_btf_ctx_access() argument
2630 return btf_ctx_access(off, size, type, prog, info); in bpf_tracing_btf_ctx_access()
2650 int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
2661 const struct bpf_prog *prog);
2664 bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog);
2666 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
2668 int bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id,
2702 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog);
2722 static inline void bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add() argument
2726 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub() argument
2730 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put() argument
2734 static inline void bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc() argument
2739 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero() argument
2746 struct bpf_prog *prog) in bpf_link_init() argument
2870 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog, in bpf_prog_test_run_xdp() argument
2877 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog, in bpf_prog_test_run_skb() argument
2884 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing() argument
2891 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector() argument
2898 static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, in bpf_prog_test_run_sk_lookup() argument
2924 bpf_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_base_func_proto() argument
2933 static inline bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog) in bpf_prog_has_kfunc_call() argument
2939 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, in bpf_jit_find_kfunc_model() argument
2946 bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id, in bpf_get_kfunc_addr() argument
2962 static inline void bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter() argument
3009 int bpf_prog_offload_compile(struct bpf_prog *prog);
3010 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog);
3012 struct bpf_prog *prog);
3023 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
3033 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
3040 void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, u32 func_id);
3041 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr);
3065 int bpf_prog_test_run_syscall(struct bpf_prog *prog,
3069 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
3074 int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog);
3086 static inline void *bpf_dev_bound_resolve_kfunc(struct bpf_prog *prog, in bpf_dev_bound_resolve_kfunc() argument
3092 static inline int bpf_prog_dev_bound_init(struct bpf_prog *prog, in bpf_prog_dev_bound_init() argument
3142 static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog, in bpf_prog_test_run_syscall() argument
3151 struct bpf_prog *prog) in sock_map_get_from_fd() argument
3174 static inline int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog) in sock_map_link_create() argument
3185 struct bpf_prog *prog; in bpf_prog_inc_misses_counters() local
3191 while ((prog = READ_ONCE(item->prog))) { in bpf_prog_inc_misses_counters()
3192 bpf_prog_inc_misses_counter(prog); in bpf_prog_inc_misses_counters()
3312 enum bpf_func_id func_id, const struct bpf_prog *prog);
3328 struct bpf_prog *prog,
3348 struct bpf_prog *prog, in bpf_sock_convert_ctx_access() argument
3377 struct bpf_prog *prog,
3386 struct bpf_prog *prog,
3399 struct bpf_prog *prog, in bpf_tcp_sock_convert_ctx_access() argument
3414 struct bpf_prog *prog, in bpf_xdp_sock_convert_ctx_access() argument
3481 static inline bool bpf_is_subprog(const struct bpf_prog *prog) in bpf_is_subprog() argument
3483 return prog->aux->func_idx != 0; in bpf_is_subprog()