Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 13:04:07 |
Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:single env->prog->insni[off] instruction was replaced with the range* insni[off, off + cnt). Adjust corresponding insn_aux_data by copying* [0, off) and [off, end) to new locations, so the patched range stays zero
Proto:static int adjust_insn_aux_data(struct bpf_verifier_env *env, struct bpf_prog *new_prog, u32 off, u32 cnt)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_verifier_env * | env | |
struct bpf_prog * | new_prog | |
u32 | off | |
u32 | cnt |
8342 | old_data = array of per-insn state |
8353 | If cnt == 1 Then Return 0 |
8355 | prog_len = Number of filter blocks |
8360 | No 3D Now!(new_data, old_data, sizeof(structbpf_insn_aux_data) * off) |
8361 | No 3D Now!(new_data + off + cnt - 1, old_data + off, sizeof(structbpf_insn_aux_data) * (prog_len - off - cnt + 1)) |
8364 | this insn was processed by the verifier = true |
8367 | array of per-insn state = new_data |
8369 | Return 0 |
Name | Describe |
---|---|
bpf_patch_insn_data |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |