Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get the leftmost event in the @cpu subtree.

Proto:static struct perf_event *perf_event_groups_first(struct perf_event_groups *groups, int cpu)

Type:struct perf_event

Parameter:

TypeParameterName
struct perf_event_groups *groups
intcpu
1618  struct perf_event * node_event = NULL, * match = NULL
1619  node = rb_node
1621  When node cycle
1622  node_event = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(node, structperf_event, group_node)
1624  If cpu < cpu Then
1625  node = rb_left
1626  Else if cpu > cpu Then
1627  node = rb_right
1628  Else
1629  match = node_event
1630  node = rb_left
1634  Return match
Caller
NameDescribe
visit_groups_merge