Searched refs:bpf_prog (Results 26 - 50 of 260) sorted by relevance

1234567891011

/linux-master/kernel/bpf/
H A Ddispatcher.c26 struct bpf_dispatcher *d, struct bpf_prog *prog)
44 struct bpf_prog *prog)
69 struct bpf_prog *prog)
137 void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,
138 struct bpf_prog *to)
H A Dcore.c96 struct bpf_prog *bpf_prog_alloc_no_stats(unsigned int size, gfp_t gfp_extra_flags)
100 struct bpf_prog *fp;
138 struct bpf_prog *bpf_prog_alloc(unsigned int size, gfp_t gfp_extra_flags)
141 struct bpf_prog *prog;
166 int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog)
180 void bpf_prog_jit_attempt_done(struct bpf_prog *prog)
216 void bpf_prog_fill_jited_linfo(struct bpf_prog *prog,
245 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,
249 struct bpf_prog *f
[all...]
H A Dtcx.c10 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
15 struct bpf_prog *replace_prog = NULL;
59 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog)
203 static int tcx_link_update(struct bpf_link *link, struct bpf_prog *nprog,
204 struct bpf_prog *oprog)
302 struct bpf_prog *prog)
310 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
H A Dtrampoline.c107 bool bpf_prog_has_trampoline(const struct bpf_prog *prog)
502 static enum bpf_tramp_prog_type bpf_attach_type_to_tramp(struct bpf_prog *prog)
637 static struct bpf_shim_tramp_link *cgroup_shim_alloc(const struct bpf_prog *prog,
642 struct bpf_prog *p;
680 struct bpf_prog *p = link->link.prog;
690 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,
756 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog)
859 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx)
874 static void notrace update_prog_stats(struct bpf_prog *prog,
896 static void notrace __bpf_prog_exit_recur(struct bpf_prog *pro
[all...]
H A Dnet_namespace.c165 struct bpf_prog *new_prog,
166 struct bpf_prog *old_prog)
297 int netns_bpf_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
301 struct bpf_prog *attached;
366 struct bpf_prog *old)
368 struct bpf_prog *attached;
386 struct bpf_prog *prog;
477 int netns_bpf_link_create(const union bpf_attr *attr, struct bpf_prog *prog)
H A Dcgroup.c37 const struct bpf_prog *prog;
69 const struct bpf_prog *shim_prog;
77 /*shim_prog = container_of(insn, struct bpf_prog, insnsi);*/
78 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
91 const struct bpf_prog *shim_prog;
99 /*shim_prog = container_of(insn, struct bpf_prog, insnsi);*/
100 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
113 const struct bpf_prog *shim_pro
[all...]
H A Doffload.c108 static void __bpf_prog_offload_destroy(struct bpf_prog *prog)
188 static int __bpf_prog_dev_bound_init(struct bpf_prog *prog, struct net_device *netdev)
228 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr)
270 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog)
296 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog)
381 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog)
402 static int bpf_prog_offload_translate(struct bpf_prog *prog)
423 int bpf_prog_offload_compile(struct bpf_prog *prog)
431 struct bpf_prog *pro
[all...]
H A Dmprog.c34 struct bpf_prog *prog = ERR_PTR(-EINVAL);
114 struct bpf_prog *oprog;
227 struct bpf_prog *prog_new, struct bpf_link *link,
228 struct bpf_prog *prog_old,
303 struct bpf_prog *prog;
330 struct bpf_prog *prog, struct bpf_link *link,
402 struct bpf_prog *prog;
H A Ddevmap.c61 struct bpf_prog *xdp_prog;
68 struct bpf_prog *xdp_prog;
120 valsize != offsetofend(struct bpf_devmap_val, bpf_prog.fd)) ||
185 /* At this point bpf_prog->aux->refcnt == 0 and this map->refcnt == 0,
323 static int dev_map_bpf_prog_run(struct bpf_prog *xdp_prog,
454 struct net_device *dev_rx, struct bpf_prog *xdp_prog)
480 struct bpf_prog *xdp_prog)
677 struct bpf_prog *xdp_prog)
700 struct bpf_prog *xdp_prog)
719 struct bpf_prog *xdp_pro
[all...]
/linux-master/net/netfilter/
H A Dxt_bpf.c25 struct bpf_prog **ret)
43 static int __bpf_mt_check_fd(int fd, struct bpf_prog **ret)
45 struct bpf_prog *prog;
55 static int __bpf_mt_check_path(const char *path, struct bpf_prog **ret)
H A Dnf_bpf_link.c11 static unsigned int nf_hook_run_bpf(void *bpf_prog, struct sk_buff *skb, argument
14 const struct bpf_prog *prog = bpf_prog;
162 static int bpf_nf_link_update(struct bpf_link *link, struct bpf_prog *new_prog,
163 struct bpf_prog *old_prog)
207 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
287 const struct bpf_prog *prog,
315 bpf_nf_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
/linux-master/drivers/media/rc/
H A Dbpf-lirc.c83 lirc_mode2_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
123 const struct bpf_prog *prog,
137 static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog)
175 static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog)
248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
269 struct bpf_prog *prog;
/linux-master/include/linux/
H A Dtrace_events.h17 struct bpf_prog;
765 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
768 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
769 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
776 int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
777 int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
785 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie)
797 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p)
801 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p)
820 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *pro
[all...]
H A Dbpf-cgroup.h19 struct bpf_prog;
111 struct bpf_prog *prog;
170 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog,
428 enum bpf_prog_type ptype, struct bpf_prog *prog);
431 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
436 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
438 cgroup_current_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
446 struct bpf_prog *prog)
458 struct bpf_prog *prog)
470 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *pro
[all...]
/linux-master/samples/bpf/
H A Dxdp_sample.bpf.c91 * bpf_prog. Plus, there is additional overhead of doing so.
97 const struct bpf_prog *xdp, const void *tgt, int err,
105 const struct bpf_prog *xdp, const void *tgt, int err,
113 const struct bpf_prog *xdp, const void *tgt, int err,
121 const struct bpf_prog *xdp, const void *tgt, int err,
182 const struct bpf_prog *xdp, u32 act)
H A Dhbm.c70 static struct bpf_program *bpf_prog; variable in typeref:struct:bpf_program
139 bpf_prog = pos;
143 if (!bpf_prog) {
199 bpf_program__set_expected_attach_type(bpf_prog, BPF_CGROUP_INET_INGRESS);
201 link = bpf_program__attach_cgroup(bpf_prog, cg1);
/linux-master/arch/riscv/net/
H A Dbpf_jit_core.c21 const struct bpf_prog *prog = ctx->prog;
45 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
49 struct bpf_prog *tmp, *orig_prog = prog;
260 void bpf_jit_free(struct bpf_prog *prog)
/linux-master/include/net/
H A Dkcm.h86 struct bpf_prog;
109 struct bpf_prog *bpf_prog; member in struct:kcm_psock
/linux-master/arch/powerpc/net/
H A Dbpf_jit_comp.c62 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
75 struct bpf_prog *org_fp = fp;
76 struct bpf_prog *tmp_fp;
257 int bpf_add_extable_entry(struct bpf_prog *fp, u32 *image, u32 *fimage, int pass,
339 void bpf_jit_free(struct bpf_prog *fp)
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_xdp.c13 struct bpf_prog *old_prog;
77 struct bpf_prog *xdp_prog = port->xdp_prog;
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_xdp.c102 int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog,
106 struct bpf_prog *old_prog;
/linux-master/net/packet/
H A Dinternal.h91 struct bpf_prog __rcu *bpf_prog; member in union:packet_fanout::__anon193
/linux-master/arch/um/drivers/
H A Dvector_user.c779 struct sock_fprog *bpf_prog; local
781 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL);
782 if (bpf_prog) {
783 bpf_prog->len = DEFAULT_BPF_LEN;
784 bpf_prog->filter = NULL;
791 bpf_prog->filter = bpf;
805 kfree(bpf_prog);
806 bpf_prog = NULL;
808 return bpf_prog;
816 struct sock_fprog *bpf_prog; local
[all...]
/linux-master/arch/parisc/net/
H A Dbpf_jit_core.c18 const struct bpf_prog *prog = ctx->prog;
44 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
48 struct bpf_prog *tmp, *orig_prog = prog;
/linux-master/drivers/net/netdevsim/
H A Dbpf.c31 struct bpf_prog *prog;
92 static void nsim_prog_set_loaded(struct bpf_prog *prog, bool loaded)
104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog)
122 struct bpf_prog *prog = cls_bpf->prog;
124 struct bpf_prog *oldprog;
219 struct bpf_prog *prog)
254 static int nsim_bpf_verifier_prep(struct bpf_prog *prog)
265 static int nsim_bpf_translate(struct bpf_prog *prog)
273 static void nsim_bpf_destroy_prog(struct bpf_prog *prog)

Completed in 457 milliseconds

1234567891011