函数逻辑报告 | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-27 14:58:06 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:perf_event_mmap
函数原型:void perf_event_mmap(struct vm_area_struct *vma)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct vm_area_struct * | vma | 
| 7892 | 如果非atomic_read( & nr_mmap_events)则返回 | 
| 7895 | mmap_event = (struct perf_mmap_event){vma = vma, event_id = {header = {type = PERF_RECORD_MMAP, misc = PERF_RECORD_MISC_USER, }, start = Our start address within vm_mm. , len = The first byte after our end addresswithin vm_mm. - Our start address within vm_mm. , pgoff = (u64)Offset (within vm_file) in PAGE_SIZEunits << PAGE_SHIFT determines the page size , }, } | 
| 7920 | perf_event_mmap_event( & mmap_event) | 
| 名称 | 描述 | 
|---|---|
| expand_downwards | vma is the first one with address < vma->vm_start. Have to extend vma. | 
| do_brk_flags | his is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here. | 
| __install_special_mapping | |
| mprotect_fixup | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |