函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Helper function to insert event into the pinned or flexible groups.

函数原型:static void add_event_to_groups(struct perf_event *event, struct perf_event_context *ctx)

返回类型:void

参数:

类型参数名称
struct perf_event *event
struct perf_event_context *ctx
1582  groups等于Extract pinned or flexible groups from the context* based on event attrs bits.
1583  Insert @event into @groups' tree; using {@event->cpu, ++@groups->index} for* key (see perf_event_groups_less). This places it last inside the CPU* subtree.
调用者
名称描述
list_add_eventAdd an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
perf_group_detach