Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_verifier_log_member

Proto:static void btf_verifier_log_member(struct btf_verifier_env *env, const struct btf_type *struct_type, const struct btf_member *member, const char *fmt, ...)

Type:void

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *struct_type
const struct btf_member *member
const char *fmt
723  log = log
724  btf = btf
727  If Not bpf_verifier_log_needed(log) Then Return
730  If level == kernel internal flag && Not fmt Then Return
738  If phase != CHECK_META Then btf_verifier_log_type(env, struct_type, NULL)
741  If btf_type_kflag(struct_type) Then __btf_verifier_log(log, "\t%s type_id=%u bitfield_size=%u bits_offset=%u", __btf_name_by_offset(btf, name_off), type, If the struct/union type info kind_flag is set, the* following two macros are used to access bitfield_size* and bit_offset from btf_member.offset.(If the type info kind_flag is set, the btf_member offset* contains both member bitfield size and bit offset. The* bitfield size is set for bitfield members. If the type* info kind_flag is not set, the offset contains only bit* offset.), BTF_MEMBER_BIT_OFFSET(If the type info kind_flag is set, the btf_member offset* contains both member bitfield size and bit offset. The* bitfield size is set for bitfield members. If the type* info kind_flag is not set, the offset contains only bit* offset.))
748  Else __btf_verifier_log(log, "\t%s type_id=%u bits_offset=%u", __btf_name_by_offset(btf, name_off), type, If the type info kind_flag is set, the btf_member offset* contains both member bitfield size and bit offset. The* bitfield size is set for bitfield members. If the type* info kind_flag is not set, the offset contains only bit* offset.)
753  If fmt && fmt Then
754  __btf_verifier_log(log, " ")
755  va_start(args, fmt)
756  bpf_verifier_vlog(log, fmt, args)
757  va_end(args)
760  __btf_verifier_log(log, "\n")
Caller
NameDescribe
btf_generic_check_kflag_memberUsed for ptr, array and struct/union type members.* int, enum and modifier types have their specific callback functions.
btf_int_check_member
btf_int_check_kflag_member
btf_modifier_check_member
btf_modifier_check_kflag_member
btf_ptr_check_member
btf_array_check_member
btf_struct_check_member
btf_struct_check_meta
btf_struct_resolve
btf_enum_check_member
btf_enum_check_kflag_member