函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_fill_maxinsns10

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

返回类型:int

参数:

类型参数名称
struct bpf_test *self
294  len等于BPF_MAXINSNS, hlen等于len减2
298  insn等于分配数组内存
299  如果非insn则返回:负ENOMEM
302 i小于hlen除2循环insn[i]等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JA, 0, 0, hlen - 2 - 2 * i)
304 i大于hlen除2循环insn[i]等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JA, 0, 0, hlen - 1 - 2 * i)
307  insn[hlen / 2]等于Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 (BPF_JA, 0, 0, hlen / 2 - 1)
308  insn[hlen]等于BPF_ALU32_IMM(mov reg to reg , Redefine REGs to make tests less verbose , 0xabababac)
309  insn[hlen + 1]等于Program exit ()
311  insns等于insn
312  len等于len
314  返回:0