函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-27 14:34:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__btf_verifier_log_type

函数原型:__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, ...)

返回类型:void

参数:

类型参数名称
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  如果非bpf_verifier_log_needed(log)则返回
690  如果level恒等于kernel internal flag 且非fmt则返回
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  如果log_detailslog_details(env, t)
702  如果fmtfmt
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")