Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:21:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_distill_func_proto
Proto:int btf_distill_func_proto(struct bpf_verifier_log *log, struct btf *btf, const struct btf_type *func, const char *tname, struct btf_func_model *m)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_verifier_log * | log | |
struct btf * | btf | |
const struct btf_type * | func | |
const char * | tname | |
struct btf_func_model * | m |
4005 | If Not func Then |
4016 | nargs = btf_type_vlen(func) |
4021 | Return -EINVAL |
4023 | ret = __get_type_size(btf, type, & t) |
4024 | If ret < 0 Then |
4025 | bpf_log(log, "The function %s return type %s is unsupported.\n", tname, btf_kind_str[BTF_INFO_KIND( "info" bits arrangement * bits 0-15: vlen (e.g. # of struct's members) * bits 16-23: unused * bits 24-27: kind (e.g. int, ptr, array...etc) * bits 28-30: unused * bit 31: kind_flag, currently used by * struct, union and fwd)]) |
4028 | Return -EINVAL |
4033 | ret = __get_type_size(btf, type, & t) |
4034 | If ret < 0 Then |
4035 | bpf_log(log, "The function %s arg%d type %s is unsupported.\n", tname, i, btf_kind_str[BTF_INFO_KIND( "info" bits arrangement * bits 0-15: vlen (e.g. # of struct's members) * bits 16-23: unused * bits 24-27: kind (e.g. int, ptr, array...etc) * bits 28-30: unused * bit 31: kind_flag, currently used by * struct, union and fwd)]) |
4038 | Return -EINVAL |
4043 | Return 0 |
Name | Describe |
---|---|
check_attach_btf_id |
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 |