Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ring_buffer_get

Proto:struct ring_buffer *ring_buffer_get(struct perf_event *event)

Type:struct ring_buffer

Parameter:

TypeParameterName
struct perf_event *event
5627  _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
5628  rb = fetch RCU-protected pointer for dereferencing(rb)
5629  If rb Then
5630  If Not _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the Then rb = NULL
5633  _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()
5635  Return rb
Caller
NameDescribe
perf_mmap_closeA buffer can be mmap()ed multiple times; either directly through the same* event, or through other events by use of perf_event_set_output().* In order to undo the VM accounting done by perf_mmap() we need to destroy
perf_prepare_sample_aux
perf_aux_sample_output
perf_event_set_output
perf_aux_output_beginThis is called before hardware starts writing to the AUX area to* obtain an output handle and make sure there's room in the buffer