Function report |
Source Code:kernel\bpf\core.c |
Create Date:2022-07-28 12:47:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_patch_insn_single
Proto:struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, const struct bpf_insn *patch, u32 len)
Type:struct bpf_prog
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_prog * | prog | |
u32 | off | |
const struct bpf_insn * | patch | |
u32 | len |
437 | insn_delta = len - 1 |
443 | If insn_delta == 0 Then |
455 | If insn_adj_cnt > cnt_max && (err = bpf_adj_branches(prog, off, off + 1, off + len, true)) Then Return ERR_PTR(err) |
478 | insn_rest = insn_adj_cnt - off - len |
490 | bpf_adj_linfo(prog_adj, off, insn_delta) |
492 | Return prog_adj |
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 |