Function report |
Source Code:kernel\bpf\stackmap.c |
Create Date:2022-07-28 13:26:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Parse build ID of ELF file mapped to vma
Proto:static int stack_map_get_build_id(struct vm_area_struct *vma, unsigned char *build_id)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
unsigned char * | build_id |
253 | If Not File we map to (can be NULL). Then Return -EINVAL |
261 | page_addr = kmap_atomic(page) |
272 | If e_ident[EI_CLASS] == ELFCLASS32 Then ret = Parse build ID from 32-bit ELF |
274 | Else if e_ident[EI_CLASS] == ELFCLASS64 Then ret = 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) |
279 | Return ret |
Name | Describe |
---|---|
stack_map_get_build_id_offset |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |