函数逻辑报告 |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-27 14:37:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:btf_check_sec_info
函数原型:static int btf_check_sec_info(struct btf_verifier_env *env, u32 btf_data_size)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct btf_verifier_env * | env | |
| u32 | btf_data_size |
| 3250 | 以i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(btf_sec_info_offset)循环secs[i]等于*hdr加btf_sec_info_offset[i]的和 |
| 3254 | sort(secs, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(btf_sec_info_offset), sizeof(structbtf_sec_info), btf_sec_info_cmp, NULL) |
| 3258 | total等于0 |
| 3261 | 如果expected_total小于off则 |
| 3262 | btf_verifier_log(env, "Invalid section offset") |
| 3263 | 返回:负EINVAL |
| 3267 | btf_verifier_log(env, "Unsupported section found") |
| 3268 | 返回:负EINVAL |
| 3271 | btf_verifier_log(env, "Section overlap found") |
| 3272 | 返回:负EINVAL |
| 3274 | 如果expected_total减total小于len则 |
| 3275 | btf_verifier_log(env, "Total section length too long") |
| 3277 | 返回:负EINVAL |
| 3283 | 如果expected_total不等于total则 |
| 3284 | btf_verifier_log(env, "Unsupported section found") |
| 3285 | 返回:负EINVAL |
| 3288 | 返回:0 |
| 名称 | 描述 |
|---|---|
| btf_parse_hdr |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |