Searched refs:new_prog (Results 1 - 14 of 14) sorted by relevance

/linux-master/tools/perf/util/
H A Dbpf-prologue.h18 struct bpf_insn *new_prog, size_t *new_cnt,
27 struct bpf_insn *new_prog __maybe_unused,
/linux-master/kernel/bpf/
H A Dnet_namespace.c165 struct bpf_prog *new_prog,
177 if (new_prog->type != link->prog->type)
192 ret = bpf_prog_array_update_at(run_array, idx, new_prog);
196 old_prog = xchg(&link->prog, new_prog);
164 bpf_netns_link_update_prog(struct bpf_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument
H A Dverifier.c18455 struct bpf_prog *new_prog, u32 off, u32 cnt)
18458 struct bpf_insn *insn = new_prog->insnsi;
18471 prog_len = new_prog->len;
18516 struct bpf_prog *new_prog; local
18526 new_prog = bpf_patch_insn_single(env->prog, off, patch, len);
18527 if (IS_ERR(new_prog)) {
18528 if (PTR_ERR(new_prog) == -ERANGE)
18535 adjust_insn_aux_data(env, new_data, new_prog, off, len);
18537 adjust_poke_descs(new_prog, off, len);
18538 return new_prog;
18453 adjust_insn_aux_data(struct bpf_verifier_env *env, struct bpf_insn_aux_data *new_data, struct bpf_prog *new_prog, u32 off, u32 cnt) argument
18807 struct bpf_prog *new_prog; local
18911 struct bpf_prog *new_prog; local
19596 struct bpf_prog *new_prog; local
20252 struct bpf_prog *new_prog; local
20345 struct bpf_prog *new_prog; local
[all...]
H A Dbpf_iter.c412 struct bpf_prog *new_prog,
423 if (link->prog->type != new_prog->type ||
424 link->prog->expected_attach_type != new_prog->expected_attach_type ||
425 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) {
430 old_prog = xchg(&link->prog, new_prog);
411 bpf_iter_link_replace(struct bpf_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument
H A Doffload.c270 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument
280 new_prog->aux->dev_bound = old_prog->aux->dev_bound;
281 new_prog->aux->offload_requested = old_prog->aux->offload_requested;
289 err = __bpf_prog_dev_bound_init(new_prog, old_prog->aux->offload->netdev);
H A Dcgroup.c616 struct bpf_prog *new_prog = prog ? : link->link.prog; local
633 atype = bpf_cgroup_atype_find(type, new_prog->aux->attach_btf_id);
688 err = bpf_trampoline_link_cgroup_shim(new_prog, atype);
709 bpf_trampoline_unlink_cgroup_shim(new_prog);
788 * @new_prog: &struct bpf_prog for the target BPF program with its refcnt
795 struct bpf_prog *new_prog)
803 atype = bpf_cgroup_atype_find(link->type, new_prog->aux->attach_btf_id);
809 if (link->link.prog->type != new_prog->type)
821 old_prog = xchg(&link->link.prog, new_prog);
827 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog, argument
793 __cgroup_bpf_replace(struct cgroup *cgrp, struct bpf_cgroup_link *link, struct bpf_prog *new_prog) argument
[all...]
H A Dsyscall.c5315 struct bpf_prog *old_prog = NULL, *new_prog; local
5336 new_prog = bpf_prog_get(attr->link_update.new_prog_fd);
5337 if (IS_ERR(new_prog)) {
5338 ret = PTR_ERR(new_prog);
5355 ret = link->ops->update_prog(link, new_prog, old_prog);
5363 bpf_prog_put(new_prog);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_metadata.c369 struct bpf_program *new_prog, *prog; local
491 new_prog = bpf_object__find_program_by_name(bpf_obj2->obj, "freplace_rx");
492 bpf_program__set_attach_target(new_prog, bpf_program__fd(prog), "rx");
/linux-master/net/netfilter/
H A Dnf_bpf_link.c162 static int bpf_nf_link_update(struct bpf_link *link, struct bpf_prog *new_prog, argument
/linux-master/net/core/
H A Ddev.c9310 struct bpf_xdp_link *link, struct bpf_prog *new_prog,
9324 if (link && (new_prog || old_prog))
9374 /* put effective new program into new_prog */
9376 new_prog = link->link.prog;
9378 if (new_prog) {
9391 if (!offload && bpf_prog_is_offloaded(new_prog->aux)) {
9395 if (bpf_prog_is_dev_bound(new_prog->aux) && !bpf_offload_dev_match(new_prog, dev)) {
9399 if (new_prog->expected_attach_type == BPF_XDP_DEVMAP) {
9403 if (new_prog
9309 dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack, struct bpf_xdp_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog, u32 flags) argument
9517 bpf_xdp_link_update(struct bpf_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument
9643 struct bpf_prog *new_prog = NULL, *old_prog = NULL; local
[all...]
H A Dfilter.c549 * @new_prog: allocated 'struct bpf_prog' or NULL
562 * bpf_convert_filter(old_prog, old_len, new_prog, &new_len, &seen_ld_abs)
565 struct bpf_prog *new_prog, int *new_len,
580 if (new_prog) {
581 first_insn = new_prog->insnsi;
593 if (new_prog) {
829 if (new_prog && new_prog->aux->stack_depth < stack_off)
830 new_prog->aux->stack_depth = stack_off;
879 if (new_prog)
564 bpf_convert_filter(struct sock_filter *prog, int len, struct bpf_prog *new_prog, int *new_len, bool *seen_ld_abs) argument
[all...]
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede.h521 struct bpf_prog *new_prog; member in union:qede_reload_args::__anon1563
H A Dqede_filter.c1025 old = xchg(&edev->xdp_prog, args->u.new_prog);
1036 args.u.new_prog = prog;
/linux-master/include/linux/
H A Dbpf.h1598 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
2976 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog);
3031 static inline int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, argument

Completed in 269 milliseconds