Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_read_event

Proto:static void perf_event_read_event(struct perf_event *event, struct task_struct *task)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
struct task_struct *task
7005  struct perf_read_event read_event = {header = {type = PERF_RECORD_READ, misc = 0, size = size of read_event + read_size, }, pid = perf_event_pid(event, task), tid = perf_event_tid(event, task), }
7016  perf_event_header__init_id( & header, & sample, event)
7017  ret = perf_output_begin( & handle, event, size)
7018  If ret Then Return
7021  perf_output_put( & handle, read_event)
7022  XXX PERF_SAMPLE_READ vs inherited events seems difficult.* The problem is that its both hard and excessively expensive to iterate the* child list, not to mention that its impossible to IPI the children running* on another CPU, from interrupt/NMI context.
7023  perf_event__output_id_sample(event, & handle, & sample)
7025  perf_output_end( & handle)
Caller
NameDescribe
sync_child_event