Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_group_attach

Proto:static void perf_group_attach(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
1821  group_leader = group_leader
1823  lockdep_assert_held( & lock)
1828  If attach_state & PERF_ATTACH_GROUP Then Return
1831  attach_state |= PERF_ATTACH_GROUP
1833  If group_leader == event Then Return
1836  WARN_ON_ONCE(ctx != ctx)
1838  group_caps &= event_caps
1840  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
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.
Caller
NameDescribe
add_event_to_ctx