Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:19:30 |
| 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_proto_check_meta
Proto:static s32 btf_func_proto_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 |
| 2531 | meta_needed = btf_type_vlen(t) * sizeof(structbtf_param) |
| 2533 | If meta_left < meta_needed Then |
| 2534 | btf_verifier_log_basic(env, t, "meta_left:%u meta_needed:%u", meta_left, meta_needed) |
| 2537 | Return -EINVAL |
| 2540 | If name_off Then |
| 2541 | btf_verifier_log_type(env, t, "Invalid name") |
| 2542 | Return -EINVAL |
| 2545 | If btf_type_kflag(t) Then |
| 2546 | btf_verifier_log_type(env, t, "Invalid btf_info kind_flag") |
| 2547 | Return -EINVAL |
| 2550 | btf_verifier_log_type(env, t, NULL) |
| 2552 | Return meta_needed |
| 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 |