Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:17:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check that given struct member is a regular int with expected* offset and size.
Proto:bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, const struct btf_member *m, u32 expected_offset, u32 expected_size)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
const struct btf * | btf | |
const struct btf_type * | s | |
const struct btf_member * | m | |
u32 | expected_offset | |
u32 | expected_size |
621 | t = btf_type_id_size(btf, & id, NULL) |
622 | If Not t || Not btf_type_is_int(t) Then Return false |
625 | int_data = btf_type_int(t) |
626 | nr_bits = BTF_INT_BITS(int_data) |
627 | If btf_type_kflag(s) Then |
634 | Return Not bitfield_size && BITS_ROUNDUP_BYTES(bit_offset) == expected_offset && BITS_ROUNDUP_BYTES(nr_bits) == expected_size |
646 | Return true |
Name | Describe |
---|---|
cgroup_storage_check_btf |
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 |