Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:21:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__btf_resolve_helper_id
Proto:static int __btf_resolve_helper_id(struct bpf_verifier_log *log, void *fn, int arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_verifier_log * | log | |
void * | fn | |
int | arg |
3881 | fnname[( size of "%s+%#lx/%#lx [%s]" + (128 - 1) + 2 * (32 * 3 / 10) + ((64 - sizeof(unsignedlong)) - 1) + 1) + 4] = "btf_" |
3887 | If IS_ERR(btf_vmlinux) Then |
3893 | If Not sym Then |
3899 | t = btf_type_by_id(btf_vmlinux, i) |
3902 | tname = __btf_name_by_offset(btf_vmlinux, name_off) |
3911 | t = btf_type_by_id(btf_vmlinux, type) |
3912 | If Not btf_type_is_ptr(t) Then Return -EFAULT |
3914 | t = btf_type_by_id(btf_vmlinux, type) |
3915 | If Not btf_type_is_func_proto(t) Then Return -EFAULT |
3919 | If arg >= btf_type_vlen(t) Then |
3925 | t = btf_type_by_id(btf_vmlinux, type) |
3926 | If Not btf_type_is_ptr(t) || Not type Then |
3932 | t = btf_type_by_id(btf_vmlinux, type) |
3934 | When btf_type_is_modifier(t) cycle |
3936 | t = btf_type_by_id(btf_vmlinux, type) |
3938 | If Not is only a special case of struct:* all its offsetof(member) == 0 Then |
3942 | bpf_log(log, "helper %s arg%d has btf_id %d struct %s\n", fnname + 4, arg, btf_id, __btf_name_by_offset(btf_vmlinux, name_off)) |
3944 | Return btf_id |
Name | Describe |
---|---|
btf_resolve_helper_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 |