函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_read_event

函数原型:static void perf_event_read_event(struct perf_event *event, struct task_struct *task)

返回类型:void

参数:

类型参数名称
struct perf_event *event
struct task_struct *task
7005  struct perf_read_event read_event = {header = {type = PERF_RECORD_READ, misc = 0, size = 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  如果ret则返回
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)
调用者
名称描述
sync_child_event