Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kallsyms.c Create Date:2022-07-28 11:00:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Lookup an address but don't bother to find any names.

Proto:int kallsyms_lookup_size_offset(unsigned long addr, unsigned long *symbolsize, unsigned long *offset)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned long *symbolsize
unsigned long *offset
266  If is_ksym_addr(addr) Then
267  get_symbol_pos(addr, symbolsize, offset)
268  Return 1
270  Return Not Not 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. || Not Not __bpf_address_lookup(addr, symbolsize, offset, namebuf)
Caller
NameDescribe
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.