函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Add an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.

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

返回类型:void

参数:

类型参数名称
struct perf_event *event
struct perf_event_context *ctx
1668  lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:)
1670  WARN_ON_ONCE(attach_state & PERF_ATTACH_CONTEXT)
1671  attach_state或等于PERF_ATTACH_CONTEXT
1673  tstamp等于perf_event_time(event)
1680  如果group_leader恒等于event
1681  group_caps等于event_caps
1682  Helper function to insert event into the pinned or flexible groups.
1685  list_update_cgroup_event(event, ctx, true)
1687  添加RCU保护项
1688  nr_events自加
1689  如果inherit_statnr_stat自加
1692  generation自加
调用者
名称描述
add_event_to_ctx