函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:53:40
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Initialize the perf_event context in a task_struct:

函数原型:static void __perf_event_init_context(struct perf_event_context *ctx)

返回类型:void

参数:

类型参数名称
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  初始化链表头
4217  Helper function to initializes perf_event_group trees.
4218  Helper function to initializes perf_event_group trees.
4219  初始化链表头
4220  初始化链表头
4221  初始化链表头
4222  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
调用者
名称描述
alloc_perf_context
perf_pmu_register