Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_aux_event

Proto:void perf_event_aux_event(struct perf_event *event, unsigned long head, unsigned long size, u64 flags)

Type:void

Parameter:

TypeParameterName
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 = size of 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  If ret Then Return
7951  perf_output_put( & handle, rec)
7952  perf_event__output_id_sample(event, & handle, & sample)
7954  perf_output_end( & handle)
Caller
NameDescribe
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,