函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pf_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.

函数原型:struct bpf_prog *bpf_prog_select_runtime(struct bpf_prog *fp, int *err)

返回类型:struct bpf_prog

参数:

类型参数名称
struct bpf_prog *fp
int *err
1785  如果bpf_func则转到:finalize
1788  bpf_prog_select_func(fp)
1796  如果非bpf_prog_is_dev_bound( Auxiliary fields )则
1797  err等于bpf_prog_alloc_jited_linfo(fp)
1798  如果err则返回:fp
1801  fp等于Stub for JITs that only support cBPF. eBPF programs are interpreted.* It is encouraged to implement bpf_int_jit_compile() instead, so that* eBPF and implicitly also cBPF can get JITed!
1802  如果非 Is our filter JIT'ed?
1808  否则
1811  否则
1812  err等于bpf_prog_offload_compile(fp)
1813  如果err则返回:fp
1817  finalize :
1818  bpf_prog_lock_ro(fp)
1825  err等于bpf_check_tail_call(fp)
1827  返回:fp
调用者
名称描述
bpf_prog_load
generate_filter