Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_event_output

Proto:static __always_inline int __perf_event_output(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs, int (*output_begin)(struct perf_output_handle *, struct perf_event *, unsigned int ))

Type:int

Parameter:

TypeParameterName
struct perf_event *event
struct perf_sample_data *data
struct pt_regs *regs
int (*output_begin
6947  _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
6949  perf_prepare_sample( & header, data, event, regs)
6951  err = output_begin( & handle, event, size)
6952  If err Then Go to exit
6955  perf_output_sample( & handle, & header, data, event)
6957  perf_output_end( & handle)
6959  exit :
6960  _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()
6961  Return err
Caller
NameDescribe
perf_event_output_forward
perf_event_output_backward
perf_event_output