Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:20: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_parse_vmlinux
Proto:struct btf *btf_parse_vmlinux(void)
Type:struct btf
Parameter:Nothing
3551 | struct btf_verifier_env * env = NULL |
3556 | env = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
3561 | level = kernel internal flag |
3563 | btf = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
3564 | If Not btf Then |
3574 | err = btf_parse_hdr(env) |
3578 | nohdr_data = data + hdr_len |
3580 | err = btf_parse_str_sec(env) |
3584 | err = btf_check_all_metas(env) |
3593 | t = btf_type_by_id(btf, i) |
3594 | If Not __btf_type_is_struct(t) Then Continue |
3596 | tname = __btf_name_by_offset(btf, name_off) |
3608 | btf_verifier_env_free(env) |
3610 | Return btf |
3612 | errout : |
3613 | btf_verifier_env_free(env) |
3614 | If btf Then |
Name | Describe |
---|---|
bpf_check |
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 |