Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-28 12:55:43
Last Modify:2022-05-19 20:02:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:find_linfo

Proto:static const struct bpf_line_info *find_linfo(const struct bpf_verifier_env *env, u32 insn_off)

Type:struct bpf_line_info

Parameter:

TypeParameterName
const struct bpf_verifier_env *env
u32insn_off
248  prog = BPF program being verified
249  nr_linfo = nr_linfo
251  If Not nr_linfo || insn_off >= Number of filter blocks Then Return NULL
254  linfo = bpf_line_info loaded from userspace. linfo->insn_off * has the xlated insn offset. * Both the main and sub prog share the same linfo. * The subprog can access its first linfo by * using the linfo_idx.
255  When i < nr_linfo cycle If insn_off < insn_off Then
257  Break
259  Return linfo[i - 1]
Caller
NameDescribe
verbose_linfo