Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:visit_groups_merge

Proto:static int visit_groups_merge(struct perf_event_groups *groups, int cpu, int (*func)(struct perf_event *, void *), void *data)

Type:int

Parameter:

TypeParameterName
struct perf_event_groups *groups
intcpu
int (*func
void *data
3397  evt1 = Get the leftmost event in the @cpu subtree.
3398  evt2 = Get the leftmost event in the @cpu subtree.
3400  When evt1 || evt2 cycle
3401  If evt1 && evt2 Then
3402  If group_index < group_index Then evt = evt1
3404  Else evt = evt2
3406  Else if evt1 Then
3407  evt = evt1
3408  Else
3409  evt = evt2
3412  ret = func( * evt, data)
3413  If ret Then Return ret
3416  evt = Like rb_entry_next_safe() for the @cpu subtree.
3419  Return 0
Caller
NameDescribe
ctx_pinned_sched_in
ctx_flexible_sched_in