函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_prog_alloc_jited_linfo

函数原型:int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog)

返回类型:int

参数:

类型参数名称
struct bpf_prog *prog
134  如果非nr_linfo或非 archs need to JIT the prog 则返回:0
137  jited_linfo is the jited addr of the linfo. It has a * one to one mapping to linfo: * jited_linfo[i] is the jited addr for the linfo[i]->insn_off. * Both the main and sub prog share the same jited_linfo. * The subprog can access its first jited_linfo by *等于分配数组内存并置零
140  如果非 jited_linfo is the jited addr of the linfo. It has a * one to one mapping to linfo: * jited_linfo[i] is the jited addr for the linfo[i]->insn_off. * Both the main and sub prog share the same jited_linfo. * The subprog can access its first jited_linfo by *则返回:负ENOMEM
143  返回:0
调用者
名称描述
bpf_prog_select_runtimepf_prog_select_runtime - select exec runtime for BPF program*@fp: bpf_prog populated with internal BPF program*@err: pointer to error variable* Try to JIT eBPF program, if JIT is not available, use interpreter.
jit_subprogs