函数逻辑报告 |
Source Code:kernel\kallsyms.c |
Create Date:2022-07-27 12:00:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_symbol_pos
函数原型:static unsigned long get_symbol_pos(unsigned long addr, unsigned long *symbolsize, unsigned long *offset)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | addr | |
unsigned long * | symbolsize | |
unsigned long * | offset |
202 | symbol_start等于0, symbol_end等于0 |
208 | 否则BUG_ON(!kallsyms_offsets) |
212 | low等于0 |
213 | high等于Tell the compiler that the count isn't in the small data section if the arch* has one (eg: FRV). |
227 | 当low且kallsyms_sym_address(low - 1)恒等于kallsyms_sym_address(low)循环 |
228 | low先自减 |
234 | 如果kallsyms_sym_address(i)大于symbol_start则 |
235 | symbol_end等于kallsyms_sym_address(i) |
236 | 退出 |
241 | 如果非symbol_end则 |
242 | 如果is_kernel_inittext(addr)则symbol_end等于_einittext |
252 | 如果offset则offset等于addr减symbol_start |
255 | 返回:low |
名称 | 描述 |
---|---|
kallsyms_lookup_size_offset | Lookup an address but don't bother to find any names. |
kallsyms_lookup | 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. |
lookup_symbol_name | |
lookup_symbol_attrs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |