Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:18:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_array_check_member
Proto:static int btf_array_check_member(struct btf_verifier_env *env, const struct btf_type *struct_type, const struct btf_member *member, const struct btf_type *member_type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct btf_verifier_env * | env | |
const struct btf_type * | struct_type | |
const struct btf_member * | member | |
const struct btf_type * | member_type |
1926 | If BITS_PER_BYTE_MASKED(struct_bits_off) Then |
1927 | btf_verifier_log_member(env, struct_type, member, "Member is not byte aligned") |
1929 | Return -EINVAL |
1932 | array_type_id = type |
1933 | btf_type_id_size(btf, & array_type_id, & array_size) |
1934 | struct_size = size |
1936 | If struct_size - bytes_offset < array_size Then |
1937 | btf_verifier_log_member(env, struct_type, member, "Member exceeds struct_size") |
1939 | Return -EINVAL |
1942 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |