Home
last modified time | relevance | path

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

/kernel/bpf/
Dcore.c449 struct bpf_prog *prog_adj; in bpf_patch_insn_single() local
473 prog_adj = bpf_prog_realloc(prog, bpf_prog_size(insn_adj_cnt), in bpf_patch_insn_single()
475 if (!prog_adj) in bpf_patch_insn_single()
478 prog_adj->len = insn_adj_cnt; in bpf_patch_insn_single()
490 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, in bpf_patch_insn_single()
492 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); in bpf_patch_insn_single()
498 BUG_ON(bpf_adj_branches(prog_adj, off, off + 1, off + len, false)); in bpf_patch_insn_single()
500 bpf_adj_linfo(prog_adj, off, insn_delta); in bpf_patch_insn_single()
502 return prog_adj; in bpf_patch_insn_single()