函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_switch_output

函数原型:static void perf_event_switch_output(struct perf_event *event, void *data)

返回类型:void

参数:

类型参数名称
struct perf_event *event
void *data
8012  se等于data
8017  如果非perf_event_switch_match(event)则返回
8021  如果task
8022  type等于PERF_RECORD_SWITCH
8023  size等于header的长度
8024  否则
8025  type等于PERF_RECORD_SWITCH_CPU_WIDE
8026  size等于event_id的长度
8027  next_prev_pid等于perf_event_pid(event, next_prev)
8029  next_prev_tid等于perf_event_tid(event, next_prev)
8033  perf_event_header__init_id( & header, & sample, event)
8035  ret等于perf_output_begin( & handle, event, size)
8036  如果ret则返回
8039  如果taskperf_output_put( & handle, header)
8041  否则perf_output_put( & handle, event_id)
8044  perf_event__output_id_sample(event, & handle, & sample)
8046  perf_output_end( & handle)