Home
last modified time | relevance | path

Searched refs:new_prog (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
Dbpf-prologue.h19 struct bpf_insn *new_prog, size_t *new_cnt,
27 struct bpf_insn *new_prog __maybe_unused, in bpf__gen_prologue()
Dbpf-prologue.c365 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() argument
375 if (!new_prog || !new_cnt) in bpf__gen_prologue()
381 pos.begin = new_prog; in bpf__gen_prologue()
382 pos.end = new_prog + cnt_space; in bpf__gen_prologue()
383 pos.pos = new_prog; in bpf__gen_prologue()
/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_iter.c367 struct bpf_prog *new_prog, in bpf_iter_link_replace() argument
378 if (link->prog->type != new_prog->type || in bpf_iter_link_replace()
379 link->prog->expected_attach_type != new_prog->expected_attach_type || in bpf_iter_link_replace()
380 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) { in bpf_iter_link_replace()
385 old_prog = xchg(&link->prog, new_prog); in bpf_iter_link_replace()
Dnet_namespace.c164 struct bpf_prog *new_prog, in bpf_netns_link_update_prog() argument
176 if (new_prog->type != link->prog->type) in bpf_netns_link_update_prog()
191 ret = bpf_prog_array_update_at(run_array, idx, new_prog); in bpf_netns_link_update_prog()
195 old_prog = xchg(&link->prog, new_prog); in bpf_netns_link_update_prog()
Dverifier.c10560 struct bpf_prog *new_prog, u32 off, u32 cnt) in adjust_insn_aux_data() argument
10563 struct bpf_insn *insn = new_prog->insnsi; in adjust_insn_aux_data()
10576 prog_len = new_prog->len; in adjust_insn_aux_data()
10621 struct bpf_prog *new_prog; in bpf_patch_insn_data() local
10631 new_prog = bpf_patch_insn_single(env->prog, off, patch, len); in bpf_patch_insn_data()
10632 if (IS_ERR(new_prog)) { in bpf_patch_insn_data()
10633 if (PTR_ERR(new_prog) == -ERANGE) in bpf_patch_insn_data()
10640 adjust_insn_aux_data(env, new_data, new_prog, off, len); in bpf_patch_insn_data()
10642 adjust_poke_descs(new_prog, off, len); in bpf_patch_insn_data()
10643 return new_prog; in bpf_patch_insn_data()
[all …]
Dcgroup.c575 struct bpf_prog *new_prog) in __cgroup_bpf_replace() argument
582 if (link->link.prog->type != new_prog->type) in __cgroup_bpf_replace()
594 old_prog = xchg(&link->link.prog, new_prog); in __cgroup_bpf_replace()
600 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog, in cgroup_bpf_replace() argument
618 ret = __cgroup_bpf_replace(cg_link->cgroup, cg_link, new_prog); in cgroup_bpf_replace()
Dsyscall.c4120 struct bpf_prog *old_prog = NULL, *new_prog; in link_update() local
4136 new_prog = bpf_prog_get(attr->link_update.new_prog_fd); in link_update()
4137 if (IS_ERR(new_prog)) { in link_update()
4138 ret = PTR_ERR(new_prog); in link_update()
4155 ret = link->ops->update_prog(link, new_prog, old_prog); in link_update()
4163 bpf_prog_put(new_prog); in link_update()
/kernel/linux/linux-5.10/net/core/
Ddev.c9133 struct bpf_xdp_link *link, struct bpf_prog *new_prog, in dev_xdp_attach() argument
9145 if (link && (new_prog || old_prog)) in dev_xdp_attach()
9189 new_prog = link->link.prog; in dev_xdp_attach()
9191 if (new_prog) { in dev_xdp_attach()
9204 if (!offload && bpf_prog_is_dev_bound(new_prog->aux)) { in dev_xdp_attach()
9208 if (new_prog->expected_attach_type == BPF_XDP_DEVMAP) { in dev_xdp_attach()
9212 if (new_prog->expected_attach_type == BPF_XDP_CPUMAP) { in dev_xdp_attach()
9219 if (new_prog != cur_prog) { in dev_xdp_attach()
9226 err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog); in dev_xdp_attach()
9234 dev_xdp_set_prog(dev, mode, new_prog); in dev_xdp_attach()
[all …]
Dfilter.c556 struct bpf_prog *new_prog, int *new_len, in bpf_convert_filter() argument
571 if (new_prog) { in bpf_convert_filter()
572 first_insn = new_prog->insnsi; in bpf_convert_filter()
584 if (new_prog) { in bpf_convert_filter()
820 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter()
821 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter()
870 if (new_prog) in bpf_convert_filter()
876 if (!new_prog) { in bpf_convert_filter()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede.h521 struct bpf_prog *new_prog; member
Dqede_filter.c1027 old = xchg(&edev->xdp_prog, args->u.new_prog); in qede_xdp_reload_func()
1038 args.u.new_prog = prog; in qede_xdp_set()
/kernel/linux/linux-5.10/include/linux/
Dbpf.h950 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,