Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-28 13:04:20
Last Modify:2022-05-19 20:02:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:verifier_remove_insns

Proto:static int verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt)

Type:int

Parameter:

TypeParameterName
struct bpf_verifier_env *env
u32off
u32cnt
8527  aux_data = array of per-insn state
8528  orig_prog_len = Number of filter blocks
8531  If bpf_prog_is_dev_bound( Auxiliary fields ) Then bpf_prog_offload_remove_insns(env, off, cnt)
8534  err = bpf_remove_insns(BPF program being verified , off, cnt)
8535  If err Then Return err
8538  err = adjust_subprog_starts_after_remove(env, off, cnt)
8539  If err Then Return err
8542  err = bpf_adj_linfo_after_remove(env, off, cnt)
8543  If err Then Return err
8546  memmove(aux_data + off, aux_data + off + cnt, size of aux_data * (orig_prog_len - off - cnt))
8549  Return 0
Caller
NameDescribe
opt_remove_dead_code
opt_remove_nops