Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:17:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_add_type
Proto:static int btf_add_type(struct btf_verifier_env *env, struct btf_type *t)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct btf_verifier_env * | env | |
| struct btf_type * | t |
| 823 | If types_size - nr_types < 2 Then |
| 829 | If types_size == Max # of type identifier Then |
| 830 | btf_verifier_log(env, "Exceeded max num of types") |
| 831 | Return -E2BIG |
| 834 | expand_by = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, types_size >> 2, 16) |
| 835 | new_size = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, Max # of type identifier , types_size + expand_by) |
| 845 | Else No 3D Now!(new_types, types, size of types * (nr_types + 1)) |
| 851 | types_size = new_size |
| 856 | Return 0 |
| Name | Describe |
|---|---|
| btf_check_all_metas |
| 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 |