函数逻辑报告 |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-27 14:38:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:btf_struct_access
函数原型:int btf_struct_access(struct bpf_verifier_log *log, const struct btf_type *t, int off, int size, enum bpf_access_type atype, u32 *next_btf_id)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bpf_verifier_log * | log | |
const struct btf_type * | t | |
int | off | |
int | size | |
enum bpf_access_type | atype | |
u32 * | next_btf_id |
3732 | msize等于0, total_nelems等于0 |
3737 | again : |
3738 | tname等于__btf_name_by_offset(btf_vmlinux, name_off) |
3741 | 返回:负EINVAL |
3745 | 如果btf_member_bitfield_size(t, member)则继续下一循环 |
3750 | moff等于btf_member_bit_offset(t, member)除8 |
3759 | mtype等于btf_type_by_id(btf_vmlinux, type) |
3760 | mname等于__btf_name_by_offset(btf_vmlinux, name_off) |
3764 | 如果是错误则 |
3774 | 如果btf_type_is_array(mtype)则 |
3821 | msize除等于total_nelems |
3839 | 如果btf_type_is_ptr(mtype)则 |
3843 | bpf_log(log, "cannot access ptr member %s with moff %u in struct %s with off %u size %u\n", mname, moff, tname, off, size) |
3846 | 返回:负EACCES |
3849 | stype等于btf_type_by_id(btf_vmlinux, type) |
3851 | 当btf_type_is_modifier(stype)循环 |
3852 | stype等于btf_type_by_id(btf_vmlinux, type) |
3854 | next_btf_id等于type |
3855 | 返回:g points to kernel struct |
3875 | 返回:负EINVAL |
名称 | 描述 |
---|---|
check_ptr_to_btf_access |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |