Home
last modified time | relevance | path

Searched refs:new_insn_cnt (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/lib/bpf/
Dlibbpf.h384 struct bpf_insn *new_insns, size_t new_insn_cnt);
Dlibbpf.c9203 struct bpf_insn *new_insns, size_t new_insn_cnt) in bpf_program__set_insns() argument
9210 insns = libbpf_reallocarray(prog->insns, new_insn_cnt, sizeof(*insns)); in bpf_program__set_insns()
9212 if (!insns && new_insn_cnt) { in bpf_program__set_insns()
9216 memcpy(insns, new_insns, new_insn_cnt * sizeof(*insns)); in bpf_program__set_insns()
9219 prog->insns_cnt = new_insn_cnt; in bpf_program__set_insns()