Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__btf_verifier_log_type

Proto:__printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, const struct btf_type *t, bool log_details, const char *fmt, ...)

Type:void

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *t
boollog_details
const char *fmt
678  log = log
679  kind = BTF_INFO_KIND( "info" bits arrangement * bits 0-15: vlen (e.g. # of struct's members) * bits 16-23: unused * bits 24-27: kind (e.g. int, ptr, array...etc) * bits 28-30: unused * bit 31: kind_flag, currently used by * struct, union and fwd)
680  btf = btf
683  If Not bpf_verifier_log_needed(log) Then Return
690  If level == kernel internal flag && Not fmt Then Return
693  __btf_verifier_log(log, "[%u] %s %s%s", log_type_id, btf_kind_str[kind], __btf_name_by_offset(btf, name_off), log_details ? " " : "")
699  If log_details Then log_details(env, t)
702  If fmt && fmt Then
703  __btf_verifier_log(log, " ")
704  va_start(args, fmt)
705  bpf_verifier_vlog(log, fmt, args)
706  va_end(args)
709  __btf_verifier_log(log, "\n")