函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__perf_event_header__init_id

函数原型:static void __perf_event_header__init_id(struct perf_event_header *header, struct perf_sample_data *data, struct perf_event *event)

返回类型:void

参数:

类型参数名称
struct perf_event_header *header
struct perf_sample_data *data
struct perf_event *event
6393  sample_type等于sample_type
6395  type等于sample_type
6396  size加等于id_header_size
6398  如果sample_type按位与PERF_SAMPLE_TID
6400  pid等于perf_event_pid(event, 当前进程)
6401  tid等于perf_event_tid(event, 当前进程)
6404  如果sample_type按位与PERF_SAMPLE_TIMEtime等于perf_event_clock(event)
6407  如果sample_type按位与PERF_SAMPLE_ID按位或PERF_SAMPLE_IDENTIFIER的值则id等于If we inherit events we want to return the parent event id* to userspace.
6410  如果sample_type按位与PERF_SAMPLE_STREAM_IDstream_id等于id
6413  如果sample_type按位与PERF_SAMPLE_CPU
6414  cpu等于These macros fold the SMP functionality into a single CPU system()
6415  reserved等于0
调用者
名称描述
perf_event_header__init_id
perf_prepare_sample