Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.

Proto:static void list_del_event(struct perf_event *event, struct perf_event_context *ctx)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
struct perf_event_context *ctx
1856  WARN_ON_ONCE(ctx != ctx)
1857  lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:)
1862  If Not (attach_state & PERF_ATTACH_CONTEXT) Then Return
1865  attach_state &= ~PERF_ATTACH_CONTEXT
1867  list_update_cgroup_event(event, ctx, false)
1869  nr_events--
1870  If inherit_stat Then nr_stat--
1873  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
1875  If group_leader == event Then Helper function to delete event from its groups.
1885  If state > PERF_EVENT_STATE_OFF Then perf_event_set_state(event, PERF_EVENT_STATE_OFF)
1888  generation++
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_event_exit_event
perf_free_event