函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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 , }, }
7919  Adjust all task's events' filters to the new vma
7920  perf_event_mmap_event( & mmap_event)
调用者
名称描述
expand_downwardsvma is the first one with address < vma->vm_start. Have to extend vma.
do_brk_flagshis 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