Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:54:17
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_insn_prepare_dump

Proto:static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog)

Type:struct bpf_insn

Parameter:

TypeParameterName
const struct bpf_prog *prog
2408  insns = kmemdup(insnsi, bpf_prog_insn_size(prog), GFP_USER)
2410  If Not insns Then Return insns
2413  When i < Number of filter blocks cycle
2425  Continue
2428  If opcode != ( BPF_LD | BPF_IMM | double word (64-bit) ) Then Continue
2431  imm = signed immediate constant << 32 | signed immediate constant
2432  map = bpf_map_from_imm(prog, imm, & off, & type)
2433  If map Then
2437  Continue
2441  Return insns
Caller
NameDescribe
bpf_prog_get_info_by_fd