Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_exit_event

Proto:static void perf_event_exit_event(struct perf_event *child_event, struct perf_event_context *child_ctx, struct task_struct *child)

Type:void

Parameter:

TypeParameterName
struct perf_event *child_event
struct perf_event_context *child_ctx
struct task_struct *child
11787  parent_event = parent
11801  raw_spin_lock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
11802  WARN_ON_ONCE(is_active)
11804  If parent_event Then perf_group_detach(child_event)
11806  Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
11807  perf_event_set_state(child_event, PERF_EVENT_STATE_EXIT)
11808  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
11813  If Not parent_event Then
11814  perf_event_wakeup(child_event)
11815  Return
11821  sync_child_event(child_event, child)
11826  WARN_ON_ONCE(parent_ctx)
11827  mutex_lock( & child_mutex)
11828  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
11829  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
11834  perf_event_wakeup(parent_event)
11835  Used to free events which have a known refcount of 1, such as in error paths* where the event isn't exposed yet and inherited events.
11836  put_event(parent_event)
Caller
NameDescribe
perf_event_exit_task_context