Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:36:55
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_virt_to_phys

Proto:static u64 perf_virt_to_phys(u64 virt)

Type:u64

Parameter:

TypeParameterName
u64virt
6732  phys_addr = 0
6733  struct page * p = NULL
6735  If Not virt Then Return 0
6738  If virt >= TASK_SIZE Then
6740  If virt_addr_valid((void * )(uintptr_t)virt) && Not ( virt >= VMALLOC_START && virt < VMALLOC_END ) Then phys_addr = virt_to_phys - map virtual addresses to physical*@address: address to remap* The returned physical address is the physical (CPU) mapping for* the memory address given. It is only valid to use this function on
6743  Else
6751  If ((mm != NULL) && (doesn't attempt to fault and will return short. == 1)) Then phys_addr = Change "struct page" to physical address.(p) + virt % PAGE_SIZE
6755  If p Then put_page(p)
6759  Return phys_addr
Caller
NameDescribe
perf_prepare_sample