函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Cross CPU call to read the hardware event

函数原型:static void __perf_event_read(void *info)

返回类型:void

参数:

类型参数名称
void *info
3998  data等于info
3999  event等于event
4000  ctx等于ctx
4001  cpuctx等于__get_cpu_context(ctx)
4002  pmu等于pmu
4011  如果tasktask_ctx不等于ctx则返回
4014  raw_spin_lock( & Protect the states of the events in the list,* nr_active, and the list:)
4015  如果is_active按位与EVENT_TIME
4016  update_context_time(ctx)
4017  update_cgrp_time_from_event(event)
4020  perf_event_update_time(event)
4021  如果groupperf_event_update_sibling_time(event)
4024  如果state不等于PERF_EVENT_STATE_ACTIVE则转到:unlock
4027  如果非group
4028  read(event)
4029  ret等于0
4030  转到:unlock
4033  start_txn(pmu, xn to read event group from PMU )
4035  read(event)
4038  如果state恒等于PERF_EVENT_STATE_ACTIVE
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:)