函数逻辑报告 |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-27 14:38:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:btf_get_prog_ctx_type
函数原型:static const struct btf_member *btf_get_prog_ctx_type(struct bpf_verifier_log *log, struct btf *btf, const struct btf_type *t, enum bpf_prog_type prog_type)
返回类型:struct btf_member
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bpf_verifier_log * | log | |
| struct btf * | btf | |
| const struct btf_type * | t | |
| enum bpf_prog_type | prog_type |
| 3487 | 如果非conv_struct则 |
| 3491 | t等于btf_type_by_id(btf, type) |
| 3492 | 当btf_type_is_modifier(t)循环 |
| 3493 | t等于btf_type_by_id(btf, type) |
| 3503 | tname等于btf_name_by_offset(btf, name_off) |
| 3504 | 如果非tname则 |
| 3513 | ctx_struct等于btf_type_by_id(btf_vmlinux, type) |
| 3514 | 如果非ctx_struct则返回:NULL |
| 3518 | 如果非ctx_tname则 |
| 3530 | 如果字符串比较则返回:NULL |
| 3532 | 返回:ctx_type |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |