函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_swevent_init_cpu

函数原型:static void perf_swevent_init_cpu(unsigned int cpu)

返回类型:void

参数:

类型参数名称
unsigned intcpu
12400  swhash等于per_cpu(swevent_htable, cpu)
12402  mutex_lock( & hlist_mutex)
12403  如果hlist_refcount大于0且非Deref the hlist from the update side
12406  hlist等于根据内存节点分配内存
12407  WARN_ON(!hlist)
12408  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(swevent_hlist, hlist)
12410  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.
调用者
名称描述
perf_event_init_cpu