Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:19:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_func_check
Proto:static int btf_func_check(struct btf_verifier_env *env, const struct btf_type *t)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct btf_verifier_env * | env | |
| const struct btf_type * | t |
| 2962 | proto_type = btf_type_by_id(btf, type) |
| 2964 | If Not proto_type || Not btf_type_is_func_proto(proto_type) Then |
| 2965 | btf_verifier_log_type(env, t, "Invalid type_id") |
| 2966 | Return -EINVAL |
| 2969 | args = proto_type + 1 |
| 2970 | nr_args = btf_type_vlen(proto_type) |
| 2973 | btf_verifier_log_type(env, t, "Invalid arg#%u", i + 1) |
| 2974 | Return -EINVAL |
| 2978 | Return 0 |
| Name | Describe |
|---|---|
| btf_check_all_types |
| 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 |