Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Dlibbpf.h384 struct bpf_insn *new_insns, size_t new_insn_cnt);
H A Dlibbpf.c9248 struct bpf_insn *new_insns, size_t new_insn_cnt) in bpf_program__set_insns() argument
9255 insns = libbpf_reallocarray(prog->insns, new_insn_cnt, sizeof(*insns)); in bpf_program__set_insns()
9257 if (!insns && new_insn_cnt) { in bpf_program__set_insns()
9261 memcpy(insns, new_insns, new_insn_cnt * sizeof(*insns)); in bpf_program__set_insns()
9264 prog->insns_cnt = new_insn_cnt; in bpf_program__set_insns()