Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:21:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__get_type_size
Proto:static int __get_type_size(struct btf *btf, u32 btf_id, const struct btf_type **bad_type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct btf * | btf | |
u32 | btf_id | |
const struct btf_type ** | bad_type |
3975 | If Not btf_id Then Return 0 |
3978 | t = btf_type_by_id(btf, btf_id) |
3979 | When t && btf_type_is_modifier(t) cycle |
3980 | t = btf_type_by_id(btf, type) |
3981 | If Not t Then |
3985 | If btf_type_is_ptr(t) Then Return size of * |
3988 | If btf_type_is_int(t) || btf_type_is_enum(t) Then Return size |
3991 | Return -EINVAL |
Name | Describe |
---|---|
btf_distill_func_proto |
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 |