函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Compare function for event groups;* Implements complex key that first sorts by CPU and then by virtual index* which provides ordering when rotating groups for the same CPU.

函数原型:static bool perf_event_groups_less(struct perf_event *left, struct perf_event *right)

返回类型:bool

参数:

类型参数名称
struct perf_event *left
struct perf_event *right
1529  如果cpu小于cpu则返回:true
1531  如果cpu大于cpu则返回:false
1534  如果group_index小于group_index则返回:true
1536  如果group_index大于group_index则返回:false
1539  返回:false
调用者
名称描述
perf_event_groups_insertInsert @event into @groups' tree; using {@event->cpu, ++@groups->index} for* key (see perf_event_groups_less). This places it last inside the CPU* subtree.