Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:19:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_struct_resolve
Proto:static int btf_struct_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 |
2222 | If next_member Then |
2227 | last_member = btf_type_member(t) + next_member - 1 |
2228 | last_member_type_id = type |
2229 | If WARN_ON_ONCE(!env_type_is_resolved(env, last_member_type_id)) Then Return -EINVAL |
2235 | If btf_type_kflag(t) Then err = check_kflag_member(env, t, last_member, last_member_type) |
2239 | Else err = check_member(env, t, last_member, last_member_type) |
2248 | member_type_id = type |
2249 | member_type = btf_type_by_id(btf, member_type_id) |
2254 | btf_verifier_log_member(env, t, member, "Invalid member") |
2256 | Return -EINVAL |
2259 | If Not env_type_is_resolve_sink(env, member_type) && Not env_type_is_resolved(env, member_type_id) Then |
2261 | env_stack_set_next_member(env, i + 1) |
2262 | Return env_stack_push(env, member_type, member_type_id) |
2265 | If btf_type_kflag(t) Then err = check_kflag_member(env, t, member, member_type) |
2269 | Else err = check_member(env, t, member, member_type) |
2277 | env_stack_pop_resolved(env, 0, 0) |
2279 | 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 |