Function report |
Source Code:kernel\kcov.c |
Create Date:2022-07-28 11:33:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kcov_mmap
Proto:static int kcov_mmap(struct file *filep, struct vm_area_struct *vma)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filep | |
| struct vm_area_struct * | vma |
| 444 | res = 0 |
| 446 | kcov = private_data |
| 450 | area = vmalloc_user(The first byte after our end addresswithin vm_mm. - Our start address within vm_mm. ) |
| 455 | size = Size of arena (in long's). * sizeof(unsignedlong) |
| 456 | If mode != KCOV_MODE_INIT || Offset (within vm_file) in PAGE_SIZEunits != 0 || The first byte after our end addresswithin vm_mm. - Our start address within vm_mm. != size Then |
| 461 | If Not Coverage buffer shared with user space. Then |
| 470 | Return 0 |
| 472 | exit : |
| 475 | Return res |
| 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 |