Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:20:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_check_meta
Proto:static s32 btf_check_meta(struct btf_verifier_env *env, const struct btf_type *t, u32 meta_left)
Type:s32
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct btf_verifier_env * | env | |
| const struct btf_type * | t | |
| u32 | meta_left |
| 3003 | saved_meta_left = meta_left |
| 3007 | btf_verifier_log(env, "[%u] meta_left:%u meta_needed:%zu", log_type_id, meta_left, size of t ) |
| 3009 | Return -EINVAL |
| 3016 | Return -EINVAL |
| 3023 | Return -EINVAL |
| 3026 | If Not btf_name_offset_valid(btf, name_off) Then |
| 3027 | btf_verifier_log(env, "[%u] Invalid name_offset:%u", log_type_id, name_off) |
| 3029 | Return -EINVAL |
| 3032 | var_meta_size = check_meta(env, t, meta_left) |
| 3033 | If var_meta_size < 0 Then Return var_meta_size |
| 3036 | meta_left -= var_meta_size |
| 3038 | Return saved_meta_left - meta_left |
| 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 |