Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\core.c Create Date:2022-07-28 12:47:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_adj_linfo

Proto:static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta)

Type:void

Parameter:

TypeParameterName
struct bpf_prog *prog
u32off
u32delta
419  nr_linfo = nr_linfo
420  If Not nr_linfo || Not delta Then Return
423  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.
425  When i < nr_linfo cycle If off < insn_off Then
427  Break
430  When i < nr_linfo cycle insn_off += delta
Caller
NameDescribe
bpf_patch_insn_single