函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_fill_maxinsns9

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

返回类型:int

参数:

类型参数名称
struct bpf_test *self
268  len等于BPF_MAXINSNS
272  insn等于分配数组内存
273  如果非insn则返回:负ENOMEM
276  insn[0]等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JA, 0, 0, len - 2)
277  insn[1]等于BPF_ALU32_IMM(mov reg to reg , Redefine REGs to make tests less verbose , 0xcbababab)
278  insn[2]等于Program exit ()
280 i小于len减2循环insn[i]等于BPF_ALU32_IMM(mov reg to reg , Redefine REGs to make tests less verbose , 0xfefefefe)
283  insn[len - 2]等于Program exit ()
284  insn[len - 1]等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JA, 0, 0, - (len - 1))
286  insns等于insn
287  len等于len
289  返回:0