函数逻辑报告 |
Source Code:kernel\kallsyms.c |
Create Date:2022-07-27 12:00:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Lookup an address* - modname is set to NULL if it's in the kernel.* - We guarantee that the returned name is valid until we reschedule even if.* It resides in a module.* - We also guarantee that modname will be valid until rescheduled.
函数原型:const char *kallsyms_lookup(unsigned long addr, unsigned long *symbolsize, unsigned long *offset, char **modname, char *namebuf)
返回类型:char
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | addr | |
unsigned long * | symbolsize | |
unsigned long * | offset | |
char ** | modname | |
char * | namebuf |
288 | namebuf[KSYM_NAME_LEN - 1]等于0 |
289 | namebuf[0]等于0 |
291 | 如果is_ksym_addr(addr)则 |
294 | pos等于get_symbol_pos(addr, symbolsize, offset) |
300 | 返回:namebuf |
304 | ret等于For kallsyms to ask for address resolution. namebuf should be at* least KSYM_NAME_LEN long: a pointer to namebuf is returned if* found, otherwise NULL. |
306 | 如果非ret则ret等于bpf_address_lookup(addr, symbolsize, offset, modname, namebuf) |
310 | 如果非ret则ret等于ftrace_mod_address_lookup(addr, symbolsize, offset, modname, namebuf) |
313 | 返回:ret |
名称 | 描述 |
---|---|
__sprint_symbol | Look up a kernel symbol and return it in a text buffer. |
kdbnearsym | kdbnearsym - Return the name of the symbol with the nearest address* less than 'addr' |
find_syscall_meta | |
__btf_resolve_helper_id |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |