Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Initialize the perf_event context in a task_struct:

Proto:static void __perf_event_init_context(struct perf_event_context *ctx)

Type:void

Parameter:

TypeParameterName
struct perf_event_context *ctx
4214  raw_spin_lock_init( & Protect the states of the events in the list,* nr_active, and the list:)
4215  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.)
4216  Initialization list head
4217  Helper function to initializes perf_event_group trees.
4218  Helper function to initializes perf_event_group trees.
4219  Initialization list head
4220  Initialization list head
4221  Initialization list head
4222  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
Caller
NameDescribe
alloc_perf_context
perf_pmu_register