函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_group_attach

函数原型:static void perf_group_attach(struct perf_event *event)

返回类型:void

参数:

类型参数名称
struct perf_event *event
1821  group_leader等于group_leader
1823  lockdep_assert_held( & lock)
1828  如果attach_state按位与PERF_ATTACH_GROUP则返回
1831  attach_state或等于PERF_ATTACH_GROUP
1833  如果group_leader恒等于event则返回
1836  WARN_ON_ONCE(ctx != ctx)
1838  group_caps与等于event_caps
1840  添加链表项
1841  nr_siblings自加
1843  Called at perf_event creation and when events are attached/detached from a* group.
1845  for_each_sibling_event(pos, group_leader)
1846  Called at perf_event creation and when events are attached/detached from a* group.
调用者
名称描述
add_event_to_ctx