函数逻辑报告 |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-27 14:38:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__btf_resolve_helper_id
函数原型:static int __btf_resolve_helper_id(struct bpf_verifier_log *log, void *fn, int arg)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bpf_verifier_log * | log | |
void * | fn | |
int | arg |
3881 | fnname[("%s+%#lx/%#lx [%s]"的长度 + (128 - 1) + 2 * (32 * 3 / 10) + ((64 - sizeof(unsignedlong)) - 1) + 1) + 4]等于"btf_" |
3887 | 如果是错误则 |
3893 | 如果非sym则 |
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 | 如果非btf_type_is_ptr(t)则返回:负EFAULT |
3914 | t等于btf_type_by_id(btf_vmlinux, type) |
3915 | 如果非btf_type_is_func_proto(t)则返回:负EFAULT |
3919 | 如果arg大于等于btf_type_vlen(t)则 |
3925 | t等于btf_type_by_id(btf_vmlinux, type) |
3926 | 如果非btf_type_is_ptr(t)或非type则 |
3932 | t等于btf_type_by_id(btf_vmlinux, type) |
3934 | 当btf_type_is_modifier(t)循环 |
3936 | t等于btf_type_by_id(btf_vmlinux, type) |
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 | 返回:btf_id |
名称 | 描述 |
---|---|
btf_resolve_helper_id |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |