函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get the leftmost event in the @cpu subtree.

函数原型:static struct perf_event *perf_event_groups_first(struct perf_event_groups *groups, int cpu)

返回类型:struct perf_event

参数:

类型参数名称
struct perf_event_groups *groups
intcpu
1618  struct perf_event * node_event = NULL, * match = NULL
1619  node等于rb_node
1621 node循环
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  如果cpu小于cpu
1625  node等于rb_left
1626  否则如果cpu大于cpu
1627  node等于rb_right
1628  否则
1629  match等于node_event
1630  node等于rb_left
1634  返回:match
调用者
名称描述
visit_groups_merge