Lines Matching refs:prog

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; member
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);
637 bool prog; member
697 struct bpf_prog *prog; member
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);
771 static inline int bpf_trampoline_link_prog(struct bpf_prog *prog, in bpf_trampoline_link_prog() argument
776 static inline int bpf_trampoline_unlink_prog(struct bpf_prog *prog, in bpf_trampoline_unlink_prog() argument
884 struct bpf_prog *prog; member
949 struct bpf_prog *prog; member
1101 struct bpf_prog *prog,
1120 struct bpf_prog *prog; member
1143 struct bpf_prog *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() local
1208 while ((prog = READ_ONCE(item->prog))) { in BPF_PROG_RUN_ARRAY_CG_FLAGS()
1210 func_ret = run_prog(prog, ctx); in BPF_PROG_RUN_ARRAY_CG_FLAGS()
1226 const struct bpf_prog *prog; in BPF_PROG_RUN_ARRAY_CG() local
1237 while ((prog = READ_ONCE(item->prog))) { in BPF_PROG_RUN_ARRAY_CG()
1239 ret &= run_prog(prog, ctx); in BPF_PROG_RUN_ARRAY_CG()
1253 const struct bpf_prog *prog; in BPF_PROG_RUN_ARRAY() local
1266 while ((prog = READ_ONCE(item->prog))) { in BPF_PROG_RUN_ARRAY()
1268 ret &= run_prog(prog, ctx); in BPF_PROG_RUN_ARRAY()
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);
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);
1536 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx);
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,
1676 bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog);
1678 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
1693 static inline void bpf_prog_add(struct bpf_prog *prog, int i) in bpf_prog_add() argument
1697 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub() argument
1701 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put() argument
1705 static inline void bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc() argument
1710 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero() argument
1717 struct bpf_prog *prog) in bpf_link_init() argument
1828 static inline int bpf_prog_test_run_xdp(struct bpf_prog *prog, in bpf_prog_test_run_xdp() argument
1835 static inline int bpf_prog_test_run_skb(struct bpf_prog *prog, in bpf_prog_test_run_skb() argument
1842 static inline int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing() argument
1849 static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector() argument
1856 static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, in bpf_prog_test_run_sk_lookup() argument
1887 static inline bool bpf_prog_has_kfunc_call(const struct bpf_prog *prog) in bpf_prog_has_kfunc_call() argument
1893 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, in bpf_jit_find_kfunc_model() argument
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() argument
1990 static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog, in bpf_prog_test_run_syscall() argument
1999 struct bpf_prog *prog) in sock_map_get_from_fd() argument
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() argument
2168 struct bpf_prog *prog,
2177 struct bpf_prog *prog,
2190 struct bpf_prog *prog, in bpf_tcp_sock_convert_ctx_access() argument
2205 struct bpf_prog *prog, in bpf_xdp_sock_convert_ctx_access() argument