Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:18:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_ptr_resolve
Proto:static int btf_ptr_resolve(struct btf_verifier_env *env, const struct resolve_vertex *v)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct btf_verifier_env * | env | |
| const struct resolve_vertex * | v |
| 1772 | next_type_id = type |
| 1775 | next_type = btf_type_by_id(btf, next_type_id) |
| 1777 | btf_verifier_log_type(env, t, "Invalid type_id") |
| 1778 | Return -EINVAL |
| 1781 | If Not env_type_is_resolve_sink(env, next_type) && Not env_type_is_resolved(env, next_type_id) Then Return env_stack_push(env, next_type, next_type_id) |
| 1793 | If btf_type_is_modifier(next_type) Then |
| 1797 | resolved_type_id = next_type_id |
| 1800 | If btf_type_is_ptr(resolved_type) && Not env_type_is_resolve_sink(env, resolved_type) && Not env_type_is_resolved(env, resolved_type_id) Then Return env_stack_push(env, resolved_type, resolved_type_id) |
| 1807 | If Not btf_type_id_size(btf, & next_type_id, NULL) Then |
| 1808 | If env_type_is_resolved(env, next_type_id) Then next_type = The input param "type_id" must point to a needs_resolve type |
| 1811 | If Not btf_type_is_void(next_type) && Not btf_type_is_fwd(next_type) && Not btf_type_is_func_proto(next_type) Then |
| 1814 | btf_verifier_log_type(env, t, "Invalid type_id") |
| 1815 | Return -EINVAL |
| 1819 | env_stack_pop_resolved(env, next_type_id, 0) |
| 1821 | 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 |