Home
last modified time | relevance | path

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

/kernel/bpf/
Dbpf_iter.c403 struct bpf_prog *new_prog, in bpf_iter_link_replace() argument
414 if (link->prog->type != new_prog->type || in bpf_iter_link_replace()
415 link->prog->expected_attach_type != new_prog->expected_attach_type || in bpf_iter_link_replace()
416 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) { in bpf_iter_link_replace()
421 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.c11978 struct bpf_prog *new_prog, u32 off, u32 cnt) in adjust_insn_aux_data() argument
11981 struct bpf_insn *insn = new_prog->insnsi; in adjust_insn_aux_data()
11994 prog_len = new_prog->len; in adjust_insn_aux_data()
12039 struct bpf_prog *new_prog; in bpf_patch_insn_data() local
12049 new_prog = bpf_patch_insn_single(env->prog, off, patch, len); in bpf_patch_insn_data()
12050 if (IS_ERR(new_prog)) { in bpf_patch_insn_data()
12051 if (PTR_ERR(new_prog) == -ERANGE) in bpf_patch_insn_data()
12058 adjust_insn_aux_data(env, new_data, new_prog, off, len); in bpf_patch_insn_data()
12060 adjust_poke_descs(new_prog, off, len); in bpf_patch_insn_data()
12061 return new_prog; in bpf_patch_insn_data()
[all …]
Dcgroup.c582 struct bpf_prog *new_prog) in __cgroup_bpf_replace() argument
596 if (link->link.prog->type != new_prog->type) in __cgroup_bpf_replace()
608 old_prog = xchg(&link->link.prog, new_prog); in __cgroup_bpf_replace()
614 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog, in cgroup_bpf_replace() argument
632 ret = __cgroup_bpf_replace(cg_link->cgroup, cg_link, new_prog); in cgroup_bpf_replace()
Dsyscall.c4326 struct bpf_prog *old_prog = NULL, *new_prog; in link_update() local
4342 new_prog = bpf_prog_get(attr->link_update.new_prog_fd); in link_update()
4343 if (IS_ERR(new_prog)) { in link_update()
4344 ret = PTR_ERR(new_prog); in link_update()
4361 ret = link->ops->update_prog(link, new_prog, old_prog); in link_update()
4369 bpf_prog_put(new_prog); in link_update()