Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Parse build ID from 32-bit ELF

Proto:static int stack_map_get_build_id_32(void *page_addr, unsigned char *build_id)

Type:int

Parameter:

TypeParameterName
void *page_addr
unsigned char *build_id
201  ehdr = page_addr
206  If e_phnum > (PAGE_SIZE - sizeof(Elf32_Ehdr)) / sizeof(Elf32_Phdr) Then Return -EINVAL
210  phdr = page_addr + sizeof(Elf32_Ehdr)
212  When i < e_phnum cycle If p_type == PT_NOTE Then
214  Return Parse build id from the note segment. This logic can be shared between* 32-bit and 64-bit system, because Elf32_Nhdr and Elf64_Nhdr are* identical.
217  Return -EINVAL
Caller
NameDescribe
stack_map_get_build_idParse build ID of ELF file mapped to vma