Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:18:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_ref_type_check_meta
Proto:static int btf_ref_type_check_meta(struct btf_verifier_env *env, const struct btf_type *t, u32 meta_left)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct btf_verifier_env * | env | |
| const struct btf_type * | t | |
| u32 | meta_left |
| 1643 | If btf_type_vlen(t) Then |
| 1644 | btf_verifier_log_type(env, t, "vlen != 0") |
| 1645 | Return -EINVAL |
| 1648 | If btf_type_kflag(t) Then |
| 1649 | btf_verifier_log_type(env, t, "Invalid btf_info kind_flag") |
| 1650 | Return -EINVAL |
| 1653 | If Not BTF_TYPE_ID_VALID(type) Then |
| 1654 | btf_verifier_log_type(env, t, "Invalid type_id") |
| 1655 | Return -EINVAL |
| 1662 | If Not name_off || Not Only C-style identifier is permitted. This can be relaxed if* necessary. Then |
| 1664 | btf_verifier_log_type(env, t, "Invalid name") |
| 1665 | Return -EINVAL |
| 1667 | Else |
| 1668 | If name_off Then |
| 1669 | btf_verifier_log_type(env, t, "Invalid name") |
| 1670 | Return -EINVAL |
| 1674 | btf_verifier_log_type(env, t, NULL) |
| 1676 | 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 |