Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:perf_event_mmap

Proto:void perf_event_mmap(struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
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 , }, }
7919  Adjust all task's events' filters to the new vma
7920  perf_event_mmap_event( & mmap_event)
Caller
NameDescribe
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