函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_bpf.c Create Date:2022-07-27 07:24:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_fill_maxinsns7

函数原型:static int bpf_fill_maxinsns7(struct bpf_test *self)

返回类型:int

参数:

类型参数名称
struct bpf_test *self
219  len等于BPF_MAXINSNS
223  insn等于分配数组内存
224  如果非insn则返回:负ENOMEM
227 i小于len减4循环insn[i]等于Internal classic blocks for direct assignment (BPF_LD | 32-bit | BPF_ABS, RATIONALE. Negative offsets are invalid in BPF.We use them to reference ancillary data.Unlike introduction new instructions, it does not breakexisting compilers/optimizers. + SKF_AD_CPU)
231  insn[len - 4]等于Internal classic blocks for direct assignment (BPF_MISC | BPF_TAX, 0)
232  insn[len - 3]等于Internal classic blocks for direct assignment (BPF_LD | 32-bit | BPF_ABS, RATIONALE. Negative offsets are invalid in BPF.We use them to reference ancillary data.Unlike introduction new instructions, it does not breakexisting compilers/optimizers. + SKF_AD_CPU)
234  insn[len - 2]等于Internal classic blocks for direct assignment (BPF_ALU | BPF_SUB | BPF_X, 0)
235  insn[len - 1]等于Internal classic blocks for direct assignment (BPF_RET | BPF_A, 0)
237  insns等于insn
238  len等于len
240  返回:0