函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:55:09
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_event_init_userpage

函数原型:static void perf_event_init_userpage(struct perf_event *event)

返回类型:void

参数:

类型参数名称
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等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(rb)
5440  如果非rb则转到: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()
调用者
名称描述
perf_mmap