函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kallsyms.c Create Date:2022-07-27 12:00:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Lookup an address but don't bother to find any names.

函数原型:int kallsyms_lookup_size_offset(unsigned long addr, unsigned long *symbolsize, unsigned long *offset)

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned long *symbolsize
unsigned long *offset
266  如果is_ksym_addr(addr)则
267  get_symbol_pos(addr, symbolsize, offset)
268  返回:1
270  返回:非非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. 或非非__bpf_address_lookup(addr, symbolsize, offset, namebuf)
调用者
名称描述
can_optimizeDecode whole function to ensure any instructions don't jump into target
klp_init_object_loadedparts of the initialization that is done only when the object is loaded
kprobe_add_ksym_blacklist
populate_error_injection_listLookup and populate the error_injection_list.* For safety reasons we only allow certain functions to be overridden with* bpf_error_injection, so we need to populate the list of the symbols that have* been marked as safe for overriding.