Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static bool perf_event_groups_less(struct perf_event *left, struct perf_event *right)

Type:bool

Parameter:

TypeParameterName
struct perf_event *left
struct perf_event *right
1529  If cpu < cpu Then Return true
1531  If cpu > cpu Then Return false
1534  If group_index < group_index Then Return true
1536  If group_index > group_index Then Return false
1539  Return false
Caller
NameDescribe
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.