函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Parse build ID from 32-bit ELF

函数原型:static int stack_map_get_build_id_32(void *page_addr, unsigned char *build_id)

返回类型:int

参数:

类型参数名称
void *page_addr
unsigned char *build_id
201  ehdr等于page_addr
206  如果e_phnum大于PAGE_SIZEsizeof(Elf32_Ehdr)的差除sizeof(Elf32_Phdr)则返回:负EINVAL
210  phdr等于page_addrsizeof(Elf32_Ehdr)
212 i小于e_phnum循环如果p_type恒等于PT_NOTE
214  返回: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  返回:负EINVAL
调用者
名称描述
stack_map_get_build_idParse build ID of ELF file mapped to vma