Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct bpf_prog *bpf_prog_select_runtime(struct bpf_prog *fp, int *err)

Type:struct bpf_prog

Parameter:

TypeParameterName
struct bpf_prog *fp
int *err
1785  If bpf_func Then Go to finalize
1788  bpf_prog_select_func(fp)
1796  If Not bpf_prog_is_dev_bound( Auxiliary fields ) Then
1797  err = bpf_prog_alloc_jited_linfo(fp)
1798  If err Then Return 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  If Not Is our filter JIT'ed? Then
1808  Else
1811  Else
1812  err = bpf_prog_offload_compile(fp)
1813  If err Then Return fp
1817  finalize :
1818  bpf_prog_lock_ro(fp)
1825  err = bpf_check_tail_call(fp)
1827  Return fp
Caller
NameDescribe
bpf_prog_load
generate_filter