函数逻辑报告 |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-27 14:37:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:btf_resolve_valid
函数原型:static bool btf_resolve_valid(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct btf_verifier_env * | env | |
| const struct btf_type * | t | |
| u32 | type_id |
| 3074 | 如果非env_type_is_resolved(env, type_id)则返回:false |
| 3077 | 如果 is only a special case of struct:* all its offsetof(member) == 0或btf_type_is_datasec(t)则返回:非resolved_ids[type_id]且非resolved_sizes[type_id] |
| 3081 | 如果btf_type_is_modifier(t)或btf_type_is_ptr(t)或btf_type_is_var(t)则 |
| 3084 | 返回:t且非btf_type_is_modifier(t)且非btf_type_is_var(t)且非btf_type_is_datasec(t) |
| 3090 | 如果btf_type_is_array(t)则 |
| 3091 | array等于btf_type_array(t) |
| 3093 | elem_type_id等于type |
| 3096 | elem_type等于btf_type_id_size(btf, & elem_type_id, & elem_size) |
| 3097 | 返回:elem_type且非btf_type_is_modifier(elem_type)且nelems乘elem_size恒等于resolved_sizes[type_id] |
| 3102 | 返回:false |
| 名称 | 描述 |
|---|---|
| btf_resolve |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |