Searched refs:prog_adj (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/bpf/ |
H A D | core.c | 474 struct bpf_prog *prog_adj; in bpf_patch_insn_single() local 498 prog_adj = bpf_prog_realloc(prog, bpf_prog_size(insn_adj_cnt), in bpf_patch_insn_single() 500 if (!prog_adj) in bpf_patch_insn_single() 503 prog_adj->len = insn_adj_cnt; in bpf_patch_insn_single() 515 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, in bpf_patch_insn_single() 517 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); in bpf_patch_insn_single() 523 BUG_ON(bpf_adj_branches(prog_adj, off, off + 1, off + len, false)); in bpf_patch_insn_single() 525 bpf_adj_linfo(prog_adj, off, insn_delta); in bpf_patch_insn_single() 527 return prog_adj; in bpf_patch_insn_single()
|