函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btf_func_proto_log

函数原型:static void btf_func_proto_log(struct btf_verifier_env *env, const struct btf_type *t)

返回类型:void

参数:

类型参数名称
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  如果非nr_args
2563  btf_verifier_log(env, "void")
2564  转到:done
2567  如果nr_args恒等于1且非type
2569  btf_verifier_log(env, "vararg")
2570  转到:done
2573  btf_verifier_log(env, "%u %s", type, __btf_name_by_offset(btf, name_off))
2576 i小于nr_args减1循环btf_verifier_log(env, ", %u %s", type, __btf_name_by_offset(btf, name_off))
2581  如果nr_args大于1则
2582  last_arg等于args[nr_args - 1]
2584  如果typebtf_verifier_log(env, ", %u %s", type, __btf_name_by_offset(btf, name_off))
2588  否则btf_verifier_log(env, ", vararg")
2592  done :
2593  btf_verifier_log(env, ")")