Home
last modified time | relevance | path

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

/Linux-v5.4/kernel/bpf/
Dcore.c336 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_imm() argument
340 s32 delta = end_new - end_old; in bpf_adj_delta_to_imm()
343 if (curr < pos && curr + imm + 1 >= end_old) in bpf_adj_delta_to_imm()
354 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_off() argument
358 s32 delta = end_new - end_old; in bpf_adj_delta_to_off()
361 if (curr < pos && curr + off + 1 >= end_old) in bpf_adj_delta_to_off()
372 static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old, in bpf_adj_branches() argument
375 u32 i, insn_cnt = prog->len + (probe_pass ? end_new - end_old : 0); in bpf_adj_branches()
388 insn = prog->insnsi + end_old; in bpf_adj_branches()
399 ret = bpf_adj_delta_to_imm(insn, pos, end_old, in bpf_adj_branches()
[all …]