Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_init_userpage

Proto:static void perf_event_init_userpage(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
5438  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
5439  rb = fetch RCU-protected pointer for dereferencing(rb)
5440  If Not rb Then Go to unlock
5443  userpg = user_page
5446  Always 1, signals that bit 0 is zero = 1
5447  Header size up to __reserved[] fields. = offsetof(structperf_event_mmap_page, __reserved)
5448  where the buffer starts = PAGE_SIZE
5449  data buffer size = perf_data_size(rb)
5451  unlock :
5452  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
Caller
NameDescribe
perf_mmap