Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_switch_output

Proto:static void perf_event_switch_output(struct perf_event *event, void *data)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
void *data
8012  se = data
8017  If Not perf_event_switch_match(event) Then Return
8021  If task Then
8022  type = PERF_RECORD_SWITCH
8023  size = size of header
8024  Else
8025  type = PERF_RECORD_SWITCH_CPU_WIDE
8026  size = size of 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  If ret Then Return
8039  If task Then perf_output_put( & handle, header)
8041  Else perf_output_put( & handle, event_id)
8044  perf_event__output_id_sample(event, & handle, & sample)
8046  perf_output_end( & handle)