函数逻辑报告 |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-27 14:28:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:array_of_map_gen_lookup
函数原型:static u32 array_of_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
返回类型:u32
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bpf_map * | map | |
| struct bpf_insn * | insn_buf |
| 1052 | insn自加等于ALU ops on immediates, bpf_add|sub|...: dst_reg += imm32 (BPF_ADD, map_ptr, offsetof(structbpf_array, value)) |
| 1053 | insn自加等于Memory load, dst_reg = *(uint *) (src_reg + off16) (32-bit , ret, index, 0) |
| 1054 | 如果unpriv_array则 |
| 1055 | insn自加等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JGE, ret, max_entries, 6) |
| 1056 | insn自加等于BPF_ALU32_IMM(BPF_AND, ret, index_mask) |
| 1057 | 否则 |
| 1065 | insn自加等于Memory load, dst_reg = *(uint *) (src_reg + off16) (double word (64-bit) , ret, ret, 0) |
| 1066 | insn自加等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JEQ, ret, 0, 1) |
| 1067 | insn自加等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JA, 0, 0, 1) |
| 1068 | insn自加等于Short form of mov, dst_reg = imm32 (ret, 0) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |