Home
last modified time | relevance | path

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

/linux-6.1.9/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()
/linux-6.1.9/kernel/bpf/
Dnet_namespace.c165 struct bpf_prog *new_prog, in bpf_netns_link_update_prog() argument
177 if (new_prog->type != link->prog->type) in bpf_netns_link_update_prog()
192 ret = bpf_prog_array_update_at(run_array, idx, new_prog); in bpf_netns_link_update_prog()
196 old_prog = xchg(&link->prog, new_prog); in bpf_netns_link_update_prog()
Dbpf_iter.c412 struct bpf_prog *new_prog, in bpf_iter_link_replace() argument
423 if (link->prog->type != new_prog->type || in bpf_iter_link_replace()
424 link->prog->expected_attach_type != new_prog->expected_attach_type || in bpf_iter_link_replace()
425 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) { in bpf_iter_link_replace()
430 old_prog = xchg(&link->prog, new_prog); in bpf_iter_link_replace()
Dverifier.c12996 struct bpf_prog *new_prog, u32 off, u32 cnt) in adjust_insn_aux_data() argument
12999 struct bpf_insn *insn = new_prog->insnsi; in adjust_insn_aux_data()
13012 prog_len = new_prog->len; in adjust_insn_aux_data()
13057 struct bpf_prog *new_prog; in bpf_patch_insn_data() local
13067 new_prog = bpf_patch_insn_single(env->prog, off, patch, len); in bpf_patch_insn_data()
13068 if (IS_ERR(new_prog)) { in bpf_patch_insn_data()
13069 if (PTR_ERR(new_prog) == -ERANGE) in bpf_patch_insn_data()
13076 adjust_insn_aux_data(env, new_data, new_prog, off, len); in bpf_patch_insn_data()
13078 adjust_poke_descs(new_prog, off, len); in bpf_patch_insn_data()
13079 return new_prog; in bpf_patch_insn_data()
[all …]
Dcgroup.c616 struct bpf_prog *new_prog = prog ? : link->link.prog; in __cgroup_bpf_attach() local
633 atype = bpf_cgroup_atype_find(type, new_prog->aux->attach_btf_id); in __cgroup_bpf_attach()
688 err = bpf_trampoline_link_cgroup_shim(new_prog, atype); in __cgroup_bpf_attach()
709 bpf_trampoline_unlink_cgroup_shim(new_prog); in __cgroup_bpf_attach()
794 struct bpf_prog *new_prog) in __cgroup_bpf_replace() argument
802 atype = bpf_cgroup_atype_find(link->type, new_prog->aux->attach_btf_id); in __cgroup_bpf_replace()
808 if (link->link.prog->type != new_prog->type) in __cgroup_bpf_replace()
820 old_prog = xchg(&link->link.prog, new_prog); in __cgroup_bpf_replace()
826 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog, in cgroup_bpf_replace() argument
844 ret = __cgroup_bpf_replace(cg_link->cgroup, cg_link, new_prog); in cgroup_bpf_replace()
Dsyscall.c4627 struct bpf_prog *old_prog = NULL, *new_prog; in link_update() local
4643 new_prog = bpf_prog_get(attr->link_update.new_prog_fd); in link_update()
4644 if (IS_ERR(new_prog)) { in link_update()
4645 ret = PTR_ERR(new_prog); in link_update()
4662 ret = link->ops->update_prog(link, new_prog, old_prog); in link_update()
4670 bpf_prog_put(new_prog); in link_update()
/linux-6.1.9/net/core/
Ddev.c9158 struct bpf_xdp_link *link, struct bpf_prog *new_prog, in dev_xdp_attach() argument
9172 if (link && (new_prog || old_prog)) in dev_xdp_attach()
9224 new_prog = link->link.prog; in dev_xdp_attach()
9226 if (new_prog) { in dev_xdp_attach()
9239 if (!offload && bpf_prog_is_dev_bound(new_prog->aux)) { in dev_xdp_attach()
9243 if (new_prog->expected_attach_type == BPF_XDP_DEVMAP) { in dev_xdp_attach()
9247 if (new_prog->expected_attach_type == BPF_XDP_CPUMAP) { in dev_xdp_attach()
9254 if (new_prog != cur_prog) { in dev_xdp_attach()
9261 err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog); in dev_xdp_attach()
9269 dev_xdp_set_prog(dev, mode, new_prog); in dev_xdp_attach()
[all …]
Dfilter.c560 struct bpf_prog *new_prog, int *new_len, in bpf_convert_filter() argument
575 if (new_prog) { in bpf_convert_filter()
576 first_insn = new_prog->insnsi; in bpf_convert_filter()
588 if (new_prog) { in bpf_convert_filter()
824 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter()
825 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter()
874 if (new_prog) in bpf_convert_filter()
880 if (!new_prog) { in bpf_convert_filter()
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede.h519 struct bpf_prog *new_prog; member
Dqede_filter.c1025 old = xchg(&edev->xdp_prog, args->u.new_prog); in qede_xdp_reload_func()
1036 args.u.new_prog = prog; in qede_xdp_set()
/linux-6.1.9/include/linux/
Dbpf.h1270 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,