Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:void

Parameter:

TypeParameterName
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  If group_leader == event Then
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  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
1688  nr_events++
1689  If inherit_stat Then nr_stat++
1692  generation++
Caller
NameDescribe
add_event_to_ctx