Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\stackmap.c Create Date:2022-07-28 13:26:17
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 64-bit ELF

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

Type:int

Parameter:

TypeParameterName
void *page_addr
unsigned char *build_id
224  ehdr = page_addr
229  If e_phnum > (PAGE_SIZE - sizeof(Elf64_Ehdr)) / sizeof(Elf64_Phdr) Then Return -EINVAL
233  phdr = page_addr + sizeof(Elf64_Ehdr)
235  When i < e_phnum cycle If p_type == PT_NOTE Then
237  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.
240  Return -EINVAL
Caller
NameDescribe
stack_map_get_build_idParse build ID of ELF file mapped to vma