Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__perf_read_group_add

Proto:static int __perf_read_group_add(struct perf_event *leader, u64 read_format, u64 *values)

Type:int

Parameter:

TypeParameterName
struct perf_event *leader
u64read_format
u64 *values
4884  ctx = ctx
4887  n = 1
4890  ret = perf_event_read(leader, true)
4891  If ret Then Return ret
4894  raw_spin_lock_irqsave( & Protect the states of the events in the list,* nr_active, and the list:, flags)
4901  If read_format & PERF_FORMAT_TOTAL_TIME_ENABLED Then
4902  values[n++] += total_time_enabled + atomic64_read( & child_total_time_enabled)
4906  If read_format & PERF_FORMAT_TOTAL_TIME_RUNNING Then
4907  values[n++] += total_time_running + atomic64_read( & child_total_time_running)
4914  values[n++] += perf_event_count(leader)
4915  If read_format & PERF_FORMAT_ID Then values[n++] = If we inherit events we want to return the parent event id* to userspace.
4919  values[n++] += perf_event_count(sub)
4920  If read_format & PERF_FORMAT_ID Then values[n++] = If we inherit events we want to return the parent event id* to userspace.
4924  raw_spin_unlock_irqrestore( & Protect the states of the events in the list,* nr_active, and the list:, flags)
4925  Return 0
Caller
NameDescribe
perf_read_group