函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_adj_linfo

函数原型:static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta)

返回类型:void

参数:

类型参数名称
struct bpf_prog *prog
u32off
u32delta
419  nr_linfo等于nr_linfo
420  如果非nr_linfo或非delta则返回
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 i小于nr_linfo循环如果off小于insn_off
427  退出
430 i小于nr_linfo循环insn_off加等于delta
调用者
名称描述
bpf_patch_insn_single