Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Cross CPU call to read the hardware event

Proto:static void __perf_event_read(void *info)

Type:void

Parameter:

TypeParameterName
void *info
3998  data = info
3999  event = event
4000  ctx = ctx
4001  cpuctx = __get_cpu_context(ctx)
4002  pmu = pmu
4011  If task && task_ctx != ctx Then Return
4014  raw_spin_lock( & Protect the states of the events in the list,* nr_active, and the list:)
4015  If is_active & EVENT_TIME Then
4016  update_context_time(ctx)
4017  update_cgrp_time_from_event(event)
4020  perf_event_update_time(event)
4021  If group Then perf_event_update_sibling_time(event)
4024  If state != PERF_EVENT_STATE_ACTIVE Then Go to unlock
4027  If Not group Then
4028  read(event)
4029  ret = 0
4030  Go to unlock
4033  start_txn(pmu, xn to read event group from PMU )
4035  read(event)
4038  If state == PERF_EVENT_STATE_ACTIVE Then
4043  read(sub)
4047  ret = commit_txn(pmu)
4049  unlock :
4050  raw_spin_unlock( & Protect the states of the events in the list,* nr_active, and the list:)