/linux-6.3-rc2/include/linux/ |
A D | bpf.h | 36 struct bpf_prog; 123 struct bpf_prog *new); 902 struct bpf_prog *prog; 1099 struct bpf_prog *prog; 1199 struct bpf_prog *to); 1317 struct bpf_prog **func; 1328 struct bpf_prog *prog; 1372 struct bpf_prog { struct 1419 struct bpf_prog *prog; argument 1661 struct bpf_prog *prog; [all …]
|
A D | filter.h | 566 struct bpf_prog *prog; 786 void bpf_prog_change_xdp(struct bpf_prog *prev_prog, struct bpf_prog *prog); 873 struct bpf_prog *bpf_prog_select_runtime(struct bpf_prog *fp, int *err); 886 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, 919 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog); 934 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, 986 struct bpf_prog *prog); 990 struct bpf_prog *prog); 1068 struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *fp); 1069 void bpf_jit_prog_release_other(struct bpf_prog *fp, struct bpf_prog *fp_other); [all …]
|
A D | bpf_lsm.h | 28 const struct bpf_prog *prog); 31 bool bpf_lsm_is_trusted(const struct bpf_prog *prog); 46 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func); 55 static inline bool bpf_lsm_is_trusted(const struct bpf_prog *prog) in bpf_lsm_is_trusted() 61 const struct bpf_prog *prog) in bpf_lsm_verify_prog() 76 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in bpf_lsm_find_cgroup_shim()
|
A D | bpf-netns.h | 26 struct bpf_prog; 32 struct bpf_prog *prog); 35 struct bpf_prog *prog); 44 struct bpf_prog *prog) in netns_bpf_prog_attach() 56 struct bpf_prog *prog) in netns_bpf_link_create()
|
A D | trace_events.h | 17 struct bpf_prog; 877 void bpf_trace_run1(struct bpf_prog *prog, u64 arg1); 878 void bpf_trace_run2(struct bpf_prog *prog, u64 arg1, u64 arg2); 879 void bpf_trace_run3(struct bpf_prog *prog, u64 arg1, u64 arg2, 881 void bpf_trace_run4(struct bpf_prog *prog, u64 arg1, u64 arg2, 883 void bpf_trace_run5(struct bpf_prog *prog, u64 arg1, u64 arg2, 885 void bpf_trace_run6(struct bpf_prog *prog, u64 arg1, u64 arg2, 887 void bpf_trace_run7(struct bpf_prog *prog, u64 arg1, u64 arg2, 889 void bpf_trace_run8(struct bpf_prog *prog, u64 arg1, u64 arg2, 892 void bpf_trace_run9(struct bpf_prog *prog, u64 arg1, u64 arg2, [all …]
|
A D | bpf-cgroup.h | 19 struct bpf_prog; 106 struct bpf_prog *prog; 163 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog, 411 enum bpf_prog_type ptype, struct bpf_prog *prog); 414 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 419 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog); 429 struct bpf_prog *prog) in cgroup_bpf_prog_attach() 441 struct bpf_prog *prog) in cgroup_bpf_link_attach() 453 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_common_func_proto() 459 cgroup_current_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_current_func_proto() [all …]
|
A D | bpf_verifier.h | 519 struct bpf_prog *prog; /* eBPF program being verified */ 602 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog); 624 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, in bpf_trampoline_compute_key() 643 const struct bpf_prog *prog, 644 const struct bpf_prog *tgt_prog, 666 static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog) in resolve_prog_type() 672 static inline bool bpf_prog_check_recur(const struct bpf_prog *prog) in bpf_prog_check_recur()
|
/linux-6.3-rc2/drivers/net/ethernet/microsoft/mana/ |
A D | mana_bpf.c | 84 struct bpf_prog *prog; in mana_run_xdp() 88 prog = rcu_dereference(rxq->bpf_prog); in mana_run_xdp() 142 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc) in mana_xdp_get() 146 return apc->bpf_prog; in mana_xdp_get() 149 static struct bpf_prog *mana_chn_xdp_get(struct mana_port_context *apc) in mana_chn_xdp_get() 151 return rtnl_dereference(apc->rxqs[0]->bpf_prog); in mana_chn_xdp_get() 157 struct bpf_prog *old_prog = mana_chn_xdp_get(apc); in mana_chn_setxdp() 170 rcu_assign_pointer(apc->rxqs[i]->bpf_prog, prog); in mana_chn_setxdp() 177 static int mana_xdp_set(struct net_device *ndev, struct bpf_prog *prog, in mana_xdp_set() 181 struct bpf_prog *old_prog; in mana_xdp_set() [all …]
|
/linux-6.3-rc2/kernel/bpf/ |
A D | prog_iter.c | 16 struct bpf_prog *prog; in bpf_prog_seq_start() 33 bpf_prog_put((struct bpf_prog *)v); in bpf_prog_seq_next() 39 __bpf_md_ptr(struct bpf_prog *, prog); 42 DEFINE_BPF_ITER_FUNC(bpf_prog, struct bpf_iter_meta *meta, struct bpf_prog *prog) in DEFINE_BPF_ITER_FUNC() argument 48 struct bpf_prog *prog; in DEFINE_BPF_ITER_FUNC() 71 bpf_prog_put((struct bpf_prog *)v); in bpf_prog_seq_stop() 82 BTF_ID(struct, bpf_prog)
|
A D | cgroup.c | 37 const struct bpf_prog *prog; in bpf_prog_run_array_cg() 78 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_sock() 100 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_socket() 118 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_current() 209 struct bpf_prog *prog, in bpf_cgroup_storages_alloc() 608 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach() 725 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach() 797 struct bpf_prog *old_prog; in __cgroup_bpf_replace() 953 struct bpf_prog *old_prog; in __cgroup_bpf_detach() 1086 struct bpf_prog *prog; in __cgroup_bpf_query() [all …]
|
A D | core.c | 94 struct bpf_prog *fp; in bpf_prog_alloc_no_stats() 132 struct bpf_prog *prog; in bpf_prog_alloc() 236 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, in bpf_prog_realloc() 240 struct bpf_prog *fp; in bpf_prog_realloc() 455 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single() 738 struct bpf_prog *prog; in search_bpf_extables() 1353 static struct bpf_prog *bpf_prog_clone_create(struct bpf_prog *fp_other, in bpf_prog_clone_create() 1357 struct bpf_prog *fp; in bpf_prog_clone_create() 1395 struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *prog) in bpf_jit_blind_constants() 2171 struct bpf_prog *bpf_prog_select_runtime(struct bpf_prog *fp, int *err) in bpf_prog_select_runtime() [all …]
|
A D | trampoline.c | 108 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline() 653 struct bpf_prog *p; in cgroup_shim_alloc() 691 struct bpf_prog *p = link->link.prog; in cgroup_shim_find() 701 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim() 767 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim() 885 static void notrace update_prog_stats(struct bpf_prog *prog, in update_prog_stats() 919 static u64 notrace __bpf_prog_enter_lsm_cgroup(struct bpf_prog *prog, in __bpf_prog_enter_lsm_cgroup() 944 u64 notrace __bpf_prog_enter_sleepable_recur(struct bpf_prog *prog, in __bpf_prog_enter_sleepable_recur() 972 static u64 notrace __bpf_prog_enter_sleepable(struct bpf_prog *prog, in __bpf_prog_enter_sleepable() 994 static u64 notrace __bpf_prog_enter(struct bpf_prog *prog, in __bpf_prog_enter() [all …]
|
A D | offload.c | 107 static void __bpf_prog_offload_destroy(struct bpf_prog *prog) in __bpf_prog_offload_destroy() 260 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog) in bpf_prog_dev_bound_inherit() 286 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog) in bpf_prog_offload_verifier_prep() 371 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog) in bpf_prog_dev_bound_destroy() 392 static int bpf_prog_offload_translate(struct bpf_prog *prog) in bpf_prog_offload_translate() 413 int bpf_prog_offload_compile(struct bpf_prog *prog) in bpf_prog_offload_compile() 421 struct bpf_prog *prog; 452 struct bpf_prog *prog) in bpf_prog_offload_info_fill() 678 static bool __bpf_offload_dev_match(struct bpf_prog *prog, in __bpf_offload_dev_match() 711 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs) in bpf_prog_dev_bound_match() [all …]
|
A D | dispatcher.c | 26 struct bpf_dispatcher *d, struct bpf_prog *prog) in bpf_dispatcher_find_prog() 44 struct bpf_prog *prog) in bpf_dispatcher_add_prog() 69 struct bpf_prog *prog) in bpf_dispatcher_remove_prog() 137 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from, in bpf_dispatcher_change_prog() 138 struct bpf_prog *to) in bpf_dispatcher_change_prog()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | xdp_cpumap_attach.c | 40 val.bpf_prog.fd = prog_fd; in test_xdp_with_cpumap_helpers() 46 ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to cpumap entry prog_id"); in test_xdp_with_cpumap_helpers() 54 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_prog); in test_xdp_with_cpumap_helpers() 63 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_cm_frags); in test_xdp_with_cpumap_helpers() 92 val.bpf_prog.fd = frags_prog_fd; in test_xdp_with_cpumap_frags_helpers() 98 ASSERT_EQ(info.id, val.bpf_prog.id, in test_xdp_with_cpumap_frags_helpers() 106 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_cm); in test_xdp_with_cpumap_frags_helpers()
|
A D | xdp_devmap_attach.c | 42 val.bpf_prog.fd = dm_fd; in test_xdp_with_devmap_helpers() 48 ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to devmap entry prog_id"); in test_xdp_with_devmap_helpers() 56 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_prog); in test_xdp_with_devmap_helpers() 65 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_dm_frags); in test_xdp_with_devmap_helpers() 105 val.bpf_prog.fd = dm_fd_frags; in test_xdp_with_devmap_frags_helpers() 111 ASSERT_EQ(info.id, val.bpf_prog.id, in test_xdp_with_devmap_frags_helpers() 119 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_dm); in test_xdp_with_devmap_frags_helpers()
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | psock_lib.h | 63 struct sock_fprog bpf_prog; in pair_udp_setfilter() local 65 bpf_prog.filter = bpf_filter; in pair_udp_setfilter() 66 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in pair_udp_setfilter() 68 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &bpf_prog, in pair_udp_setfilter() 69 sizeof(bpf_prog))) { in pair_udp_setfilter()
|
/linux-6.3-rc2/drivers/net/hyperv/ |
A D | netvsc_bpf.c | 31 struct bpf_prog *prog; in netvsc_run_xdp() 38 prog = rcu_dereference(nvchan->bpf_prog); in netvsc_run_xdp() 119 struct bpf_prog *netvsc_xdp_get(struct netvsc_device *nvdev) in netvsc_xdp_get() 121 return rtnl_dereference(nvdev->chan_table[0].bpf_prog); in netvsc_xdp_get() 124 int netvsc_xdp_set(struct net_device *dev, struct bpf_prog *prog, in netvsc_xdp_set() 128 struct bpf_prog *old_prog; in netvsc_xdp_set() 156 rcu_assign_pointer(nvdev->chan_table[i].bpf_prog, prog); in netvsc_xdp_set() 165 int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) in netvsc_vf_setxdp()
|
/linux-6.3-rc2/include/uapi/linux/netfilter/ |
A D | xt_bpf.h | 12 struct bpf_prog; 19 struct bpf_prog *filter __attribute__((aligned(8))); 39 struct bpf_prog *filter __attribute__((aligned(8)));
|
/linux-6.3-rc2/arch/um/drivers/ |
A D | vector_user.c | 782 if (bpf_prog) { in uml_vector_default_bpf() 784 bpf_prog->filter = NULL; in uml_vector_default_bpf() 791 bpf_prog->filter = bpf; in uml_vector_default_bpf() 805 kfree(bpf_prog); in uml_vector_default_bpf() 806 bpf_prog = NULL; in uml_vector_default_bpf() 808 return bpf_prog; in uml_vector_default_bpf() 828 if (bpf_prog == NULL) { in uml_vector_user_bpf() 833 bpf_prog->filter = NULL; in uml_vector_user_bpf() 844 bpf_prog->filter = bpf; in uml_vector_user_bpf() 852 return bpf_prog; in uml_vector_user_bpf() [all …]
|
/linux-6.3-rc2/kernel/bpf/preload/iterators/ |
A D | iterators.bpf.c | 44 struct bpf_prog *dst_prog; 49 struct bpf_prog { struct 55 struct bpf_prog *prog; 98 struct bpf_prog *prog = ctx->prog; in dump_bpf_prog()
|
/linux-6.3-rc2/net/netfilter/ |
A D | xt_bpf.c | 25 struct bpf_prog **ret) in __bpf_mt_check_bytecode() 43 static int __bpf_mt_check_fd(int fd, struct bpf_prog **ret) in __bpf_mt_check_fd() 45 struct bpf_prog *prog; in __bpf_mt_check_fd() 55 static int __bpf_mt_check_path(const char *path, struct bpf_prog **ret) in __bpf_mt_check_path()
|
/linux-6.3-rc2/drivers/media/rc/ |
A D | bpf-lirc.c | 83 lirc_mode2_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in lirc_mode2_func_proto() 123 const struct bpf_prog *prog, in lirc_mode2_is_valid_access() 137 static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_attach() 175 static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_detach() 248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach() 269 struct bpf_prog *prog; in lirc_prog_detach()
|
/linux-6.3-rc2/drivers/net/ethernet/engleder/ |
A D | tsnep_xdp.c | 9 int tsnep_xdp_setup_prog(struct tsnep_adapter *adapter, struct bpf_prog *prog, in tsnep_xdp_setup_prog() 12 struct bpf_prog *old_prog; in tsnep_xdp_setup_prog()
|
/linux-6.3-rc2/include/net/netns/ |
A D | bpf.h | 11 struct bpf_prog; 24 struct bpf_prog *progs[MAX_NETNS_BPF_ATTACH_TYPE];
|