Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:20:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_get_prog_ctx_type
Proto:static const struct btf_member *btf_get_prog_ctx_type(struct bpf_verifier_log *log, struct btf *btf, const struct btf_type *t, enum bpf_prog_type prog_type)
Type:struct btf_member
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_verifier_log * | log | |
struct btf * | btf | |
const struct btf_type * | t | |
enum bpf_prog_type | prog_type |
3487 | If Not conv_struct Then |
3491 | t = btf_type_by_id(btf, type) |
3492 | When btf_type_is_modifier(t) cycle |
3493 | t = btf_type_by_id(btf, type) |
3494 | If Not is only a special case of struct:* all its offsetof(member) == 0 Then |
3503 | tname = btf_name_by_offset(btf, name_off) |
3504 | If Not tname Then |
3509 | ctx_type = btf_type_member(conv_struct) + bpf_ctx_convert_map[prog_type] * 2 |
3513 | ctx_struct = btf_type_by_id(btf_vmlinux, type) |
3514 | If Not ctx_struct Then Return NULL |
3517 | ctx_tname = btf_name_by_offset(btf_vmlinux, name_off) |
3518 | If Not ctx_tname Then |
3532 | Return ctx_type |
Name | Describe |
---|---|
btf_translate_to_vmlinux | |
btf_check_func_arg_match |
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 |