函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__bpf_fill_stxdw

函数原型:static int __bpf_fill_stxdw(struct bpf_test *self, int size)

返回类型:int

参数:

类型参数名称
struct bpf_test *self
intsize
430  len等于BPF_MAXINSNS
434  insn等于分配数组内存
435  如果非insn则返回:负ENOMEM
438  insn[0]等于BPF_ALU32_IMM(mov reg to reg , Redefine REGs to make tests less verbose , 1)
439  insn[1]等于Memory store, *(uint *) (dst_reg + off16) = imm32 (size, R10, - 40, 42)
441 i小于len减2循环insn[i]等于Atomic memory add, *(uint *)(dst_reg + off16) += src_reg (size, R10, Redefine REGs to make tests less verbose , - 40)
444  insn[len - 2]等于Memory load, dst_reg = *(uint *) (src_reg + off16) (size, Redefine REGs to make tests less verbose , R10, - 40)
445  insn[len - 1]等于Program exit ()
447  insns等于insn
448  len等于len
449  for eBPF only, since tests don't call verifier 等于40
451  返回:0
调用者
名称描述
bpf_fill_stxw
bpf_fill_stxdw