Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_resolve

Proto:static int btf_resolve(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id)

Type:int

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *t
u32type_id
3108  save_log_type_id = log_type_id
3110  err = 0
3112  resolve_mode = To Be Determined
3113  env_stack_push(env, t, type_id)
3114  When Not err && (v = env_stack_peak(env)) cycle
3115  log_type_id = type_id
3116  err = resolve(env, v)
3119  log_type_id = type_id
3120  If err == -E2BIG Then
3121  btf_verifier_log_type(env, t, "Exceeded max resolving depth:%u", MAX_RESOLVE_DEPTH)
3124  Else if err == -EEXIST Then
3125  btf_verifier_log_type(env, t, "Loop detected")
3129  If Not err && Not btf_resolve_valid(env, t, type_id) Then
3130  btf_verifier_log_type(env, t, "Invalid resolve state")
3131  err = -EINVAL
3134  log_type_id = save_log_type_id
3135  Return err
Caller
NameDescribe
btf_func_proto_check
btf_check_all_types