函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-27 14:08:56
Last Modify:2022-05-19 20:02:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_verifier_vlog

函数原型:void bpf_verifier_vlog(struct bpf_verifier_log *log, const char *fmt, va_list args)

返回类型:void

参数:

类型参数名称
struct bpf_verifier_log *log
const char *fmt
va_listargs
267  n等于格式化输出字符串
269  WARN_ONCE(n >= BPF_VERIFIER_TMP_LOG_SIZE - 1, "verifier log line truncated - local buffer too short\n")
272  n等于两数取小(len_total - len_used - 1, n)
273  kbuf[n]等于'\0'
275  如果level恒等于kernel internal flag
276  打印错误信息("BPF:%s\n", kbuf)
277  返回
279  如果非copy_to_user(ubuf + len_used, kbuf, n + 1)则len_used加等于n
281  否则ubuf = NULL
调用者
名称描述
bpf_verifier_log_writelog_level controls verbosity level of eBPF verifier.* bpf_verifier_log_write() is used to dump the verification trace to the log,* so the user can figure out what's wrong with the program
verbose
bpf_log
verbose_linfo
__btf_verifier_log
btf_verifier_log
__btf_verifier_log_type
btf_verifier_log_member
btf_verifier_log_vsi