Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_func_proto_log

Proto:static void btf_func_proto_log(struct btf_verifier_env *env, const struct btf_type *t)

Type:void

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *t
2558  args = t + 1
2559  nr_args = btf_type_vlen(t)
2561  btf_verifier_log(env, "return=%u args=(", type)
2562  If Not nr_args Then
2563  btf_verifier_log(env, "void")
2564  Go to done
2567  If nr_args == 1 && Not type Then
2569  btf_verifier_log(env, "vararg")
2570  Go to done
2573  btf_verifier_log(env, "%u %s", type, __btf_name_by_offset(btf, name_off))
2576  When i < nr_args - 1 cycle btf_verifier_log(env, ", %u %s", type, __btf_name_by_offset(btf, name_off))
2581  If nr_args > 1 Then
2582  last_arg = args[nr_args - 1]
2584  If type Then btf_verifier_log(env, ", %u %s", type, __btf_name_by_offset(btf, name_off))
2588  Else btf_verifier_log(env, ", vararg")
2592  done :
2593  btf_verifier_log(env, ")")