Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/bpf/
Dcore.c300 struct bpf_prog *prog_adj; in bpf_patch_insn_single() local
323 prog_adj = bpf_prog_realloc(prog, bpf_prog_size(insn_adj_cnt), in bpf_patch_insn_single()
325 if (!prog_adj) in bpf_patch_insn_single()
328 prog_adj->len = insn_adj_cnt; in bpf_patch_insn_single()
340 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, in bpf_patch_insn_single()
342 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); in bpf_patch_insn_single()
348 BUG_ON(bpf_adj_branches(prog_adj, off, insn_delta, false)); in bpf_patch_insn_single()
350 return prog_adj; in bpf_patch_insn_single()