函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_event_output

函数原型: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 ))

返回类型:int

参数:

类型参数名称
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  如果err则转到: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  返回:err
调用者
名称描述
perf_event_output_forward
perf_event_output_backward
perf_event_output