函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Parse build ID of ELF file mapped to vma

函数原型:static int stack_map_get_build_id(struct vm_area_struct *vma, unsigned char *build_id)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned char *build_id
253  如果非File we map to (can be NULL). 则返回:负EINVAL
256  page等于d_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index* Looks up the page cache slot at @mapping & @offset. If there is a* page cache page, it is returned with an increased refcount.
257  如果非page则返回:负EFAULT
260  ret等于负EINVAL
261  page_addr等于kmap_atomic(page)
262  ehdr等于page_addr
265  如果内存比较不等于0则转到:out
269  如果e_type不等于ET_EXECe_type不等于ET_DYN则转到:out
272  如果e_ident[EI_CLASS]恒等于ELFCLASS32ret等于Parse build ID from 32-bit ELF
274  否则如果e_ident[EI_CLASS]恒等于ELFCLASS64ret等于Parse build ID from 64-bit ELF
276  out :
277  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(page_addr)
278  put_page(page)
279  返回:ret
调用者
名称描述
stack_map_get_build_id_offset