Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:38:10 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_mmap
Proto:void perf_event_mmap(struct vm_area_struct *vma)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma |
7892 | If Not atomic_read( & nr_mmap_events) Then Return |
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) |
Name | Describe |
---|---|
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 |
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 |