函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

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