函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_aux_event

函数原型:void perf_event_aux_event(struct perf_event *event, unsigned long head, unsigned long size, u64 flags)

返回类型:void

参数:

类型参数名称
struct perf_event *event
unsigned longhead
unsigned longsize
u64flags
7928  struct perf_aux_event{struct perf_event_header header;u64 offset;u64 size;u64 flags;}rec = {header = {perf_event_header  Ordering of fields matters. See states_equal() = PERF_RECORD_AUX, perf_event_header misc = 0, size = rec的长度, }, offset = head, size = size, flags = flags, }
7945  perf_event_header__init_id( & header, & sample, event)
7946  ret等于perf_output_begin( & handle, event, size)
7948  如果ret则返回
7951  perf_output_put( & handle, rec)
7952  perf_event__output_id_sample(event, & handle, & sample)
7954  perf_output_end( & handle)
调用者
名称描述
perf_aux_output_endCommit the data written by hardware into the ring buffer by adjusting* aux_head and posting a PERF_RECORD_AUX into the perf buffer. It is the* pmu driver's responsibility to observe ordering rules of the hardware,