/kernel/linux/linux-5.10/tools/perf/util/ |
D | bpf-prologue.h | 19 struct bpf_insn *new_prog, size_t *new_cnt, 27 struct bpf_insn *new_prog __maybe_unused, in bpf__gen_prologue()
|
D | bpf-prologue.c | 365 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/ |
D | bpf_iter.c | 367 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()
|
D | net_namespace.c | 164 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()
|
D | verifier.c | 10527 struct bpf_prog *new_prog, u32 off, u32 cnt) in adjust_insn_aux_data() argument 10530 struct bpf_insn *insn = new_prog->insnsi; in adjust_insn_aux_data() 10543 prog_len = new_prog->len; in adjust_insn_aux_data() 10588 struct bpf_prog *new_prog; in bpf_patch_insn_data() local 10598 new_prog = bpf_patch_insn_single(env->prog, off, patch, len); in bpf_patch_insn_data() 10599 if (IS_ERR(new_prog)) { in bpf_patch_insn_data() 10600 if (PTR_ERR(new_prog) == -ERANGE) in bpf_patch_insn_data() 10607 adjust_insn_aux_data(env, new_data, new_prog, off, len); in bpf_patch_insn_data() 10609 adjust_poke_descs(new_prog, off, len); in bpf_patch_insn_data() 10610 return new_prog; in bpf_patch_insn_data() [all …]
|
D | cgroup.c | 575 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()
|
D | syscall.c | 4115 struct bpf_prog *old_prog = NULL, *new_prog; in link_update() local 4131 new_prog = bpf_prog_get(attr->link_update.new_prog_fd); in link_update() 4132 if (IS_ERR(new_prog)) { in link_update() 4133 ret = PTR_ERR(new_prog); in link_update() 4150 ret = link->ops->update_prog(link, new_prog, old_prog); in link_update() 4158 bpf_prog_put(new_prog); in link_update()
|
/kernel/linux/linux-5.10/net/core/ |
D | dev.c | 9128 struct bpf_xdp_link *link, struct bpf_prog *new_prog, in dev_xdp_attach() argument 9140 if (link && (new_prog || old_prog)) in dev_xdp_attach() 9184 new_prog = link->link.prog; in dev_xdp_attach() 9186 if (new_prog) { in dev_xdp_attach() 9199 if (!offload && bpf_prog_is_dev_bound(new_prog->aux)) { in dev_xdp_attach() 9203 if (new_prog->expected_attach_type == BPF_XDP_DEVMAP) { in dev_xdp_attach() 9207 if (new_prog->expected_attach_type == BPF_XDP_CPUMAP) { in dev_xdp_attach() 9214 if (new_prog != cur_prog) { in dev_xdp_attach() 9221 err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog); in dev_xdp_attach() 9229 dev_xdp_set_prog(dev, mode, new_prog); in dev_xdp_attach() [all …]
|
D | filter.c | 556 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/ |
D | qede.h | 521 struct bpf_prog *new_prog; member
|
D | qede_filter.c | 1027 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/ |
D | bpf.h | 950 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog,
|