Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_group_detach

Proto:static void perf_group_detach(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
1992  ctx = ctx
1994  lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:)
1999  If Not (attach_state & PERF_ATTACH_GROUP) Then Return
2002  attach_state &= ~PERF_ATTACH_GROUP
2004  perf_put_aux_event(event)
2009  If group_leader != event Then
2010  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2011  nr_siblings--
2012  Go to out
2022  group_leader = sibling
2023  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2026  group_caps = group_caps
2031  If state == PERF_EVENT_STATE_ACTIVE Then
2039  WARN_ON_ONCE(ctx != ctx)
2042  out :
2043  Called at perf_event creation and when events are attached/detached from a* group.
2045  for_each_sibling_event(tmp, group_leader)
2046  Called at perf_event creation and when events are attached/detached from a* group.
Caller
NameDescribe
__perf_remove_from_contextCross CPU call to remove a performance event* We disable the event on the hardware level first. After that we* remove it from the context list.
perf_remove_from_contextRemove the event from a task's (or a CPU's) list of events.* If event->ctx is a cloned context, callers must make sure that* every task struct that event->ctx->task could possibly point to* remains valid. This is OK when called from perf_release since
perf_event_exit_event
perf_free_event